From 799b9b3dd45008c20ec675bbf8a6baf607bce949 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Thu, 2 Feb 2012 14:13:19 -0500 Subject: [PATCH] Revert "Fixes #935. ensuring that sync is triggered on the collection after the model is removed." This reverts commit 0cbcdc96eb05457e7635aa5d91c8f3f89e0335b3. --- backbone.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/backbone.js b/backbone.js index 4743d08a..ceb22e5b 100644 --- a/backbone.js +++ b/backbone.js @@ -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);