Home » Backbone.js delegateEvents()

Backbone.js delegateEvents()

by Online Tutorials Library

Backbone.js delegateEvents()

The Backbone.js delegateEvents method is used to bind the elements to the specified DOM with callback methods to handle events. This method can attach the events to the view if events are removed from the view.

Syntax:

Parameter explanation:

events : It specifies events that are needed for reattaching to the view.

Let’s take an example.

See this example:

You may also like