mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Add failing test for #319
This commit is contained in:
@@ -286,4 +286,11 @@ $(document).ready(function() {
|
||||
ok(_.isEqual(col.last().attributes, a.attributes));
|
||||
});
|
||||
|
||||
test("Collection: trigger custom events on models", function() {
|
||||
var fired = null;
|
||||
a.bind("custom", function() { fired = true });
|
||||
a.trigger("custom");
|
||||
equals(fired, true);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user