Merge branch 'master' of https://github.com/corbanbrook/backbone into 0.5.0

This commit is contained in:
Jeremy Ashkenas
2011-05-26 14:54:18 -04:00

View File

@@ -533,7 +533,7 @@
}
var success = options.success;
options.success = function(nextModel, resp, xhr) {
coll.add(nextModel);
coll.add(nextModel, options);
if (success) success(nextModel, resp, xhr);
};
model.save(null, options);