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. $.extend(yourObject, w2utils.event); 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.