Skip to content

Commit

Permalink
Return "this" reference
Browse files Browse the repository at this point in the history
Forgot one more return statement.
  • Loading branch information
Dmytro Nemoga authored and Dmytro Nemoga committed Jan 24, 2013
1 parent 5f657b9 commit f5d703b
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 f5d703b

Please sign in to comment.