Skip to content

PKUI.CORE.removeTouchListener

kerrishotts edited this page Nov 14, 2012 · 1 revision

(part of PKUI.CORE)

Return Type: void

Parameters: theElement ( element ), theEvent ( string ), theFunction ( function )

Calls theElement.removeEventListener to unsubscribe from notifications for theEvent. Since theEvent is translated via PKUI.CORE.translateWindowsEvents, this method can be used to unsubscribe from event notifications in a cross-platform manner.

Since the method leave non-touch events unmodified, it can also be used for non-touch events.

Example:

PKUI.CORE.removeTouchListener ( $ge("aButton"), "touchend", theEventHandler );

Notes

  • Just as with add/removeEventListener, if you wish to be able to remove an added listener, the handler must be a named function and not anonymous.

Version

0.1 Introduced

0.2 Docs Valid

Clone this wiki locally