Skip to content

Why isn't this.handleEvents() called in Backbone.View.prototype.initialize? #28

Closed
@fitzgen

Description

Or even in the constructor or render? I can't think of a use case for when I wouldn't want to bind the event handlers on creation or render; I feel like I'm being forced to write little stubs that look like this all the time:

...
initialize: function () {
    this.handleEvents();
},
...

When I have nothing else to do in initialize.

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions