www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.Controller.SceneController.listen(element, eventType, callback, onCapture)

Mojo.Controller.SceneController.listen(element, eventType, callback, onCapture)

Wrapper around Mojo.Event.listen that also calls get() on the element parameter if it is a string, converting it to a DOM node.

Argument Type Description
element String|Element

String: DOM ID identifying the target element

Element: Element reference to the target element.

eventType String String identifier for the event type
callback Function Function called when the event occurs
onCapture Boolean

True to listen during the capture phase; False to listen during bubbling (optional)

 

0 Comments

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)