IdentityMap Class
IdentityMap is a custom storage map for records by modelName
used by DS.Store.
Methods
clear
()
Clears the contents of all known RecordMaps, but does
not remove the InternalModelMap instances.
diffArray
(
Hash
private
-
oldArray -
newArray
Parameters:
-
oldArrayArraythe old array
-
newArrayArraythe new array
Returns:
Hash:
{
firstChangeIndex:
retrieve
(
InternalModelMap
-
modelName
Retrieves the InternalModelMap for a given modelName,
creating one if one did not already exist. This is
similar to getWithDefault or get on a MapWithDefault
Parameters:
-
modelNameObjecta previously normalized modelName
Returns:
InternalModelMap:
the InternalModelMap for the given modelName
