Merge branch 'master' of github.com:documentcloud/backbone

This commit is contained in:
Jeremy Ashkenas
2012-02-08 16:59:11 -05:00
2 changed files with 8 additions and 2 deletions

View File

@@ -522,4 +522,10 @@ $(document).ready(function() {
raises(function() { col.add([{id: 1}, {id: 1}]); });
});
test("#964 - collection.get return in consistent", function() {
var c = new Backbone.Collection();
ok(c.get(null) === undefined);
ok(c.get() === undefined);
});
});