mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-08 03:00:26 -04:00
Pass options to the coll.add call in Collection::create so that it can work silently.
This commit is contained in:
@@ -536,7 +536,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);
|
||||
|
||||
Reference in New Issue
Block a user