Skip to content

Commit

Permalink
use clearer event names
Browse files Browse the repository at this point in the history
  • Loading branch information
akre54 committed Nov 3, 2014
1 parent caee464 commit c6a1df5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@
var a = _.extend({}, Backbone.Events);
var b = _.extend({}, Backbone.Events);
a.listenToOnce(b, {
a: function() { ok(this === a); },
b: function() { ok(false); }
one: function() { ok(this === a); },
two: function() { ok(false); }
});
b.trigger('a');
b.trigger('one');
equal(_.keys(a._listeningTo).length, 1);
});

Expand Down

0 comments on commit c6a1df5

Please sign in to comment.