[Pkg-javascript-commits] [backbone] 17/101: Model.destroy no longer removes the model from its collection

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:58:25 UTC 2014


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

js pushed a commit to tag 0.1.0
in repository backbone.

commit 44a4d12da8a0d7739b48fbe33d551fd6f79b6a67
Author: Andrew Schaaf <andrew at andrewschaaf.com>
Date:   Sat Oct 2 17:26:30 2010 -0400

    Model.destroy no longer removes the model from its collection
---
 backbone.js | 1 -
 1 file changed, 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 65d2611..72fe401 100644
--- a/backbone.js
+++ b/backbone.js
@@ -271,7 +271,6 @@
 
     // Destroy this model on the server.
     destroy : function(options) {
-      if (this.collection) this.collection.remove(this);
       Backbone.request('DELETE', this, options.success, options.error);
       return this;
     }

-- 
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