<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=link5onMouseOver="ShowTip(event, 'tt1', 'link5')"onMouseOut="HideTip('tt1')">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"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">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"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">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=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">get</a></td><tdclass=SDescription>Returns the ID for the given object or function or null if no object is specified.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxObjectIdentity.clear"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">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><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">FIELD_NAME: 'mxObjectId'</td></tr></table></blockquote><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"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>get: function(</td><tdclass="PParameter prettyprint "nowrap>obj</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the ID for the given object or function or null if no object is specified.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxObjectIdentity.clear"></a>clear</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>clear: function(</td><tdclass="PParameter prettyprint "nowrap>obj</td><tdclass="PAfterParameters prettyprint "nowrap>)</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=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">FIELD_NAME: 'mxObjectId'</td></tr></table></blockquote>Name of the field to be used to store the object ID. </div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">counter: 0</td></tr></table></blockquote>Current counter.</div></div><divclass=CToolTipid="tt3"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>get: function(</td><tdclass="PParameter prettyprint "nowrap>obj</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the ID for the given object or function or null if no object is specified.</div></div><divclass=CToolTipid="tt4"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>clear: function(</td><tdclass="PParameter prettyprint "nowrap>obj</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Deletes the ID from the given object or function.</div></div><!--END_ND_TOOLTIPS-->