EventDispatcher:removeEventListener

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2011.6
Class: EventDispatcher

Description

Removes a listener from the EventDispatcher object.

EventDispatcher:removeEventListener(type,listener,data)

removeEventListener() function expects the same arguments than the addEventListener() to remove the event.

If there is no matching listener registered, a call to this function has no effect.

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