Update vendors.

Former-commit-id: 76887b14d32e661f4c415393637478d93174329d
This commit is contained in:
John-David Dalton
2012-10-31 00:38:38 -07:00
parent 1baefebe8f
commit 581d73afe0
3 changed files with 34 additions and 18 deletions

View File

@@ -701,4 +701,19 @@ $(document).ready(function() {
collection.add([{id: 1, x: 1}, {id: 2, x: 2}]);
deepEqual(added, [1, 2]);
});
test("fetch parses models by default", 1, function() {
var model = {};
var Collection = Backbone.Collection.extend({
url: 'test',
model: Backbone.Model.extend({
parse: function(resp) {
strictEqual(resp, model);
}
})
});
new Collection().fetch();
this.ajaxSettings.success([model]);
});
});