[Pkg-javascript-commits] [backbone] 26/37: Revert "Fixes #935. ensuring that sync is triggered on the collection after the model is removed."

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.9.1
in repository backbone.

commit 799b9b3dd45008c20ec675bbf8a6baf607bce949
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Thu Feb 2 14:13:19 2012 -0500

    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 4743d08..ceb22e5 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list