mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-22 21:38:00 -05:00
Revert "Fixes #935. ensuring that sync is triggered on the collection after the model is removed."
This reverts commit 0cbcdc96eb.
This commit is contained in:
@@ -341,13 +341,11 @@
|
||||
|
||||
if (this.isNew()) return triggerDestroy();
|
||||
options.success = function(resp) {
|
||||
var col = model.collection;
|
||||
if (options.wait) triggerDestroy();
|
||||
if (success) {
|
||||
success(model, resp);
|
||||
} else {
|
||||
model.trigger('sync', model, resp, options);
|
||||
if (col) col.trigger('sync', model, resp, options);
|
||||
}
|
||||
};
|
||||
options.error = Backbone.wrapError(options.error, model, options);
|
||||
|
||||
Reference in New Issue
Block a user