Merge pull request #2186 from DreamTheater/patch-2

Return "this" reference
This commit is contained in:
Tim Griesser
2013-01-24 11:04:37 -08:00

View File

@@ -1318,6 +1318,7 @@
this.$el.on(eventName, selector, method);
}
}
return this;
},
// Clears all callbacks previously bound to the view with `delegateEvents`.
@@ -1325,6 +1326,7 @@
// Backbone views attached to the same DOM element.
undelegateEvents: function() {
this.$el.off('.delegateEvents' + this.cid);
return this;
},
// Performs the initial configuration of a View with a set of options.