mxObjectIdentity

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.

Summary
mxObjectIdentityIdentity for JavaScript objects.
Variables
FIELD_NAMEName of the field to be used to store the object ID.
counterCurrent counter for objects.
Functions
getReturns the object id for the given object.
clearRemoves the object id from the given object.

Variables

FIELD_NAME

Name of the field to be used to store the object ID.  Default is ‘_mxObjectId’.

counter

Current counter for objects.

Functions

get

get: function(obj)

Returns the object id for the given object.

clear

clear: function(obj)

Removes the object id from the given object.

get: function(obj)
Returns the object id for the given object.
clear: function(obj)
Removes the object id from the given object.
Close