Skip to content

Commit

Permalink
remove namespace test from custom events test.
Browse files Browse the repository at this point in the history
  • Loading branch information
akre54 committed Mar 12, 2014
1 parent be11f3a commit d21fd79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,13 @@
equal(5, count);
});

test("custom events, with namespaces", 2, function() {
test("custom events", 2, function() {
var count = 0;

var View = Backbone.View.extend({
el: $('body'),
events: function() {
return {"fake$event.namespaced": "run"};
return {"fake$event": "run"};
},
run: function() {
count++;
Expand All @@ -279,7 +279,7 @@
$('body').trigger('fake$event').trigger('fake$event');
equal(count, 2);

$('body').off('.namespaced');
$('body').off('fake$event');
$('body').trigger('fake$event');
equal(count, 2);
});
Expand Down

0 comments on commit d21fd79

Please sign in to comment.