Update vendor/backbone to 1.2.1.

This commit is contained in:
jdalton
2015-06-04 19:27:19 -07:00
parent 7a9011c7e1
commit 9e1f68d9eb
6 changed files with 229 additions and 128 deletions

View File

@@ -550,6 +550,21 @@
model.destroy(options);
});
test("#3470 - save and fetch with parse false", 2, function() {
var i = 0;
var model = new Backbone.Model();
model.parse = function() {
ok(false);
};
model.sync = function(method, model, options) {
options.success({i: ++i});
};
model.fetch({parse: false});
equal(model.get('i'), i);
model.save(null, {parse: false});
equal(model.get('i'), i);
});
test("save with PATCH", function() {
doc.clear().set({id: 1, a: 1, b: 2, c: 3, d: 4});
doc.save();