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. |
clear | Deletes the ID from the given object or function. |
Returns the ID for the given object or function.
get: function( obj )
Deletes the ID from the given object or function.
clear: function( obj )