[Pkg-javascript-commits] [backbone] 47/211: delete this.id when unsetting the id attribute
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:00:00 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 2fd11a8f780c6d3f22926bf2e194c85b6636b258
Author: Andrew Badr <andrewbadr+git at gmail.com>
Date: Mon Jan 3 17:19:03 2011 -0800
delete this.id when unsetting the id attribute
---
backbone.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/backbone.js b/backbone.js
index 356405b..bf95650 100644
--- a/backbone.js
+++ b/backbone.js
@@ -215,6 +215,9 @@
// Remove the attribute.
delete this.attributes[attr];
delete this._escapedAttributes[attr];
+ if (attr == 'id') {
+ delete this.id;
+ }
this._changed = true;
if (!options.silent) {
this.trigger('change:' + attr, this, void 0, 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