Attaches an event handler for the specified event.

Example - subscribe to an event

var array = new[1, 2]);
array.bind("change", function(e) {
array.push(3); // triggers the "change" event and the handler outputs "changed"


eventName String

The name of the event.

handler Function

The function which will be invoked when the event is fired.

In this article
Not finding the help you need? Improve this article