From 67dd2ee8b3f94aaf85aeb3fa5478e505f632e96f Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 21 Dec 2010 12:11:39 -0500 Subject: [PATCH] prefer single quotes. --- backbone.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backbone.js b/backbone.js index 84944008..01801e17 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); }; } }