w2utils.event

An object to work with custom events.
Object
This object is used internally to provide event functionality for all widgets. You can apply it to your custom widgets in the following way. This will add to your object following functions:
  • on(event, handler)
  • off(event, [handler])
  • trigger(eventData)
That you can use it to add event listeners and trigger events. See Events for additional information.

User Comments

comments powered by Disqus