<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxObjectIdentity"></a>mxObjectIdentity</h1><divclass=CBody><p>Identity for JavaScript objects and functions. This is implemented using a simple incrementing counter which is stored in each object under <ahref="#mxObjectIdentity.FIELD_NAME"class=LVariableid=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">FIELD_NAME</a>.</p><p>The identity for an object does not change during its lifecycle.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxObjectIdentity">mxObjectIdentity</a></td><tdclass=SDescription>Identity for JavaScript objects and functions. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxObjectIdentity.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxObjectIdentity.FIELD_NAME">FIELD_NAME</a></td><tdclass=SDescription>Name of the field to be used to store the object ID. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxObjectIdentity.counter">counter</a></td><tdclass=SDescription>Current counter.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxObjectIdentity.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxObjectIdentity.get"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">get</a></td><tdclass=SDescription>Returns the ID for the given object or function.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxObjectIdentity.clear"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">clear</a></td><tdclass=SDescription>Deletes the ID from the given object or function.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxObjectIdentity.FIELD_NAME"></a>FIELD_NAME</h3><divclass=CBody><p>Name of the field to be used to store the object ID. Default is <code>mxObjectId</code>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxObjectIdentity.get"></a>get</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>get: function(</td><tdclass=PParameternowrap>obj</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the ID for the given object or function.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxObjectIdentity.clear"></a>clear</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>clear: function(</td><tdclass=PParameternowrap>obj</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Deletes the ID from the given object or function.</p></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>get: function(</td><tdclass=PParameternowrap>obj</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Returns the ID for the given object or function.</div></div><divclass=CToolTipid="tt2"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>clear: function(</td><tdclass=PParameternowrap>obj</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Deletes the ID from the given object or function.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable>Name of the field to be used to store the object ID. </div></div><!--END_ND_TOOLTIPS-->