Difference between revisions of "EventDispatcher:removeEventListener"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 +
'''<translate>Class</translate>:''' [[Special:MyLanguage/EventDispatcher|EventDispatcher]]<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
Removes a listener from the [[Special:MyLanguage/EventDispatcher|EventDispatcher]] object. [[Special:MyLanguage/removeEventListener()|removeEventListener()]] function expects<br />
+
Removes a listener from the `EventDispatcher` object. `removeEventListener()` function expects<br />
the same arguments with [[Special:MyLanguage/addEventListener()|addEventListener()]] to remove the event. If there is no matching listener<br />
+
the same arguments with `addEventListener()` to remove the event. If there is no matching listener<br />
 
registered, a call to this function has no effect.<br />
 
registered, a call to this function has no effect.<br />
 
<br /></translate>
 
<br /></translate>

Revision as of 09:27, 24 August 2018

Available since: Gideros 2011.6
Class: EventDispatcher

Description


Removes a listener from the `EventDispatcher` object. `removeEventListener()` function expects
the same arguments with `addEventListener()` to remove the event. If there is no matching listener
registered, a call to this function has no effect.

 EventDispatcher:removeEventListener(type,listener,data)

Parameters

type: (string) The type of event.
listener: (function) The listener object to remove.
data: (any) The data parameter that is used while registering the event.