Skip to content

Commit

Permalink
test for correct context in event maps
Browse files Browse the repository at this point in the history
  • Loading branch information
akre54 committed Nov 3, 2014
1 parent 459dc24 commit d84e15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
var a = _.extend({}, Backbone.Events);
var b = _.extend({}, Backbone.Events);
a.listenToOnce(b, {
a: function() { ok(true); },
a: function() { ok(this === a); },
b: function() { ok(false); }
});
b.trigger('a');
Expand Down

0 comments on commit d84e15b

Please sign in to comment.