[Pkg-javascript-commits] [backbone] 02/211: adding a bit more of a test for changedattributes.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 16:59:56 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 d4dc736a82254d7bbc58789733832a91a102d5cf
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date: Thu Dec 2 09:47:12 2010 -0500
adding a bit more of a test for changedattributes.
---
test/model.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/model.js b/test/model.js
index eb3efae..c1dfe3e 100644
--- a/test/model.js
+++ b/test/model.js
@@ -150,6 +150,7 @@ $(document).ready(function() {
test("Model: change, hasChanged, changedAttributes, previous, previousAttributes", function() {
var model = new Backbone.Model({name : "Tim", age : 10});
+ equals(model.changedAttributes(), false);
model.bind('change', function() {
ok(model.hasChanged('name'), 'name changed');
ok(!model.hasChanged('age'), 'age did not');
--
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