Identity for JavaScript objects. This is implemented using a simple incremeting counter which is stored in each object under <ID_NAME>.
The identity for an object does not change during its lifecycle.
mxObjectIdentity | Identity for JavaScript objects. |
Variables | |
FIELD_NAME | Name of the field to be used to store the object ID. |
counter | Current counter for objects. |
Functions | |
get | Returns the object id for the given object. |
clear | Removes the object id from the given object. |
Returns the object id for the given object.
get: function( obj )
Removes the object id from the given object.
clear: function( obj )