Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove}
The same as above except the listener will only get fired once and then removed.
Removes all listeners to all events on the object.
Alias to fireEvent.
Fires an event of the specified type. You can optionally provide an data object — the first argument of the listener function will contain its properties.
Returns true if a particular event type has some listeners attached to it.
Alias to removeEventListener.
Alias to removeEventListener.
Alias to addEventListener.
Alias to addEventListener.
Alias to addOneTimeEventListener.
Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object.
Removes a set of type/listener pairs.
Adds a listener function (fn) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. 'click dblclick').