From d4dc736a82254d7bbc58789733832a91a102d5cf Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Thu, 2 Dec 2010 09:47:12 -0500 Subject: [PATCH] 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 eb3efaed..c1dfe3e9 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');