[Pkg-javascript-commits] [backbone] 74/211: fixing lingering idAttribute spot -- thanks, jdknezek

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:04 UTC 2014


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

js pushed a commit to tag 0.5.0
in repository backbone.

commit c5160fca23c542ab1ec8f23aa60204b168ef61b9
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Mon Feb 7 14:37:07 2011 -0500

    fixing lingering idAttribute spot -- thanks, jdknezek
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 3048117..44d94d3 100644
--- a/backbone.js
+++ b/backbone.js
@@ -607,7 +607,7 @@
         this._remove(model, options);
       }
       if (ev === 'change:id') {
-        delete this._byId[model.previous('id')];
+        delete this._byId[model.previous(model.idAttribute)];
         this._byId[model.id] = model;
       }
       this.trigger.apply(this, arguments);

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