[Pkg-javascript-commits] [backbone] 217/281: removing redundant attributes check.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:14 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 b5875ac64c51ed7916f6e6016b3baad50ccda678
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Tue Jan 17 14:13:18 2012 -0500

    removing redundant attributes check.
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 207755d..e846647 100644
--- a/backbone.js
+++ b/backbone.js
@@ -302,7 +302,7 @@
       }
 
       options = options ? _.clone(options) : {};
-      if (attrs && !this.set(attrs, options)) return false;
+      if (!this.set(attrs, options)) return false;
       var model = this;
       var success = options.success;
       options.success = function(resp, status, xhr) {

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