[Pkg-javascript-commits] [backbone] 78/281: ignore values when unsetting
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:01:58 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.9.0
in repository backbone.
commit 12b11410d0961989b9671185a3b1ab094d551ffa
Author: Brad Dunbar <dunbarb2 at gmail.com>
Date: Thu Nov 10 09:59:49 2011 -0500
ignore values when unsetting
---
backbone.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/backbone.js b/backbone.js
index 6cb805d..5d906f0 100644
--- a/backbone.js
+++ b/backbone.js
@@ -187,6 +187,7 @@
options || (options = {});
if (!attrs) return this;
if (attrs.attributes) attrs = attrs.attributes;
+ if (options.unset) for (var attr in attrs) attrs[attr] = void 0;
var now = this.attributes, escaped = this._escapedAttributes;
// Run validation.
--
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