[Pkg-javascript-commits] [backbone] 40/211: prefer single quotes.

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 67dd2ee8b3f94aaf85aeb3fa5478e505f632e96f
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Tue Dec 21 12:11:39 2010 -0500

    prefer single quotes.
---
 backbone.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/backbone.js b/backbone.js
index 8494400..01801e1 100644
--- a/backbone.js
+++ b/backbone.js
@@ -23,7 +23,7 @@
 
   // Require Underscore, if we're on the server, and it's not already present.
   var _ = this._;
-  if (!_ && (typeof require !== 'undefined')) _ = require("underscore")._;
+  if (!_ && (typeof require !== 'undefined')) _ = require('underscore')._;
 
   // For Backbone's purposes, either jQuery or Zepto owns the `$` variable.
   var $ = this.jQuery || this.Zepto;
@@ -893,7 +893,7 @@
       if (!this.el) {
         var attrs = {};
         if (this.id) attrs.id = this.id;
-        if (this.className) attrs["class"] = this.className;
+        if (this.className) attrs['class'] = this.className;
         this.el = this.make(this.tagName, attrs);
       } else if (_.isString(this.el)) {
         this.el = $(this.el).get(0);
@@ -968,7 +968,7 @@
         if (Backbone.emulateJSON) params.data._method = type;
         params.type = 'POST';
         params.beforeSend = function(xhr) {
-          xhr.setRequestHeader("X-HTTP-Method-Override", type);
+          xhr.setRequestHeader('X-HTTP-Method-Override', type);
         };
       }
     }

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