Skip to content

Commit

Permalink
Merge pull request #2187 from DreamTheater/patch-3
Browse files Browse the repository at this point in the history
Return "this" reference
  • Loading branch information
tgriesser committed Jan 24, 2013
2 parents 5f657b9 + f5d703b commit 11a45e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@
// This only works for delegate-able events: not `focus`, `blur`, and
// not `change`, `submit`, and `reset` in Internet Explorer.
delegateEvents: function(events) {
if (!(events || (events = _.result(this, 'events')))) return;
if (!(events || (events = _.result(this, 'events')))) return this;
this.undelegateEvents();
for (var key in events) {
var method = events[key];
Expand Down

0 comments on commit 11a45e6

Please sign in to comment.