[Pkg-javascript-commits] [backbone] 05/101: remove collection setting

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:58:23 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 a7b43b91be99bebba52eec1ee1fca36f1c1a8f2b
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Sat Oct 2 16:05:49 2010 -0400

    remove collection setting
---
 backbone.js | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/backbone.js b/backbone.js
index 0d1c7af..a8d395e 100644
--- a/backbone.js
+++ b/backbone.js
@@ -200,11 +200,6 @@
       if (!attrs) return this;
       attrs = attrs._attributes || attrs;
       var now = this._attributes;
-      if (attrs.collection) {
-        this.collection = attrs.collection;
-        delete attrs.collection;
-        this.resource = this.collection.resource + '/' + this.id;
-      }
       if (attrs.id) {
         this.id = attrs.id;
         if (this.collection) this.resource = this.collection.resource + '/' + this.id;

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