Identity for JavaScript objects and functions. This is implemented using a simple incrementing counter which is stored in each object under FIELD_NAME.
The identity for an object does not change during its lifecycle.
mxObjectIdentity | Identity for JavaScript objects and functions. |
Variables | |
FIELD_NAME | Name of the field to be used to store the object ID. |
counter | Current counter. |
Functions | |
get | Returns the ID for the given object or function or null if no object is specified. |
clear | Deletes the ID from the given object or function. |
Name of the field to be used to store the object ID.
FIELD_NAME: 'mxObjectId'
Current counter.
counter: 0
Returns the ID for the given object or function or null if no object is specified.
get: function( obj )
Deletes the ID from the given object or function.
clear: function( obj )