<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxEventSource"></a>mxEventSource</h1><divclass=CBody><p>Base class for all event sources.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxEventSource">mxEventSource</a></td><tdclass=SDescription>Base class for all event sources.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxEventSource.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxEventSource.eventListeners"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">eventListeners</a></td><tdclass=SDescription>Holds the registered listeners.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxEventSource.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxEventSource.addListener"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">addListener</a></td><tdclass=SDescription>Adds a listener for the given event name. </td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxEventSource.fireEvent"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">fireEvent</a></td><tdclass=SDescription>Fires the event for the specified name.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxEventSource.addListener"></a>addListener</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function addListener(</td><tdclass=PParameternowrap>$name,</td></tr><tr><td></td><tdclass=PParameternowrap>$listener</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a listener for the given event name. Note that the method of the listener object must have the same name as the event it’s being added for. This is different from other language implementations of this class.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxEventSource.fireEvent"></a>fireEvent</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function fireEvent(</td><tdclass=PParameternowrap>$event</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Fires the event for the specified name.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $eventListeners</td></tr></table></blockquote>Holds the registered listeners.</div></div><divclass=CToolTipid="tt2"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function addListener(</td><tdclass=PParameternowrap>$name,</td></tr><tr><td></td><tdclass=PParameternowrap>$listener</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Adds a listener for the given event name. </div></div><divclass=CToolTipid="tt3"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function fireEvent(</td><tdclass=PParameternowrap>$event</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Fires the event for the specified name.</div></div><!--END_ND_TOOLTIPS-->