<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxObjectIdentity"></a>mxObjectIdentity</h1><divclass=CBody><p>Identity for JavaScript objects. This is implemented using a simple incremeting counter which is stored in each object under <ID_NAME>.</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. </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 for objects.</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 object id for the given object.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxObjectIdentity.clear"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">clear</a></td><tdclass=SDescription>Removes the object id from the given object.</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 ‘_mxObjectId’.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxObjectIdentity.counter"></a>counter</h3><divclass=CBody><p>Current counter for objects.</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 object id for the given object.</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>Removes the object id from the given object.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<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 object id for the given object.</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>Removes the object id from the given object.</div></div><!--END_ND_TOOLTIPS-->