[Pkg-javascript-commits] [backbone] 107/211: Add failing test for #319
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:00:10 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.5.0
in repository backbone.
commit 223c4fb210121e18f03d3f68114cfddadd3b6083
Author: Jacek Becela <jacek.becela at gmail.com>
Date: Fri Apr 15 09:32:46 2011 +0200
Add failing test for #319
---
test/collection.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/collection.js b/test/collection.js
index e620e13..865d823 100644
--- a/test/collection.js
+++ b/test/collection.js
@@ -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);
+ });
+
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list