Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Style fixes related to UMD. Added .jshintrc and included inside Grunt…

…file.
  • Loading branch information...
commit 6f81bb892ead7207c9220dbce6302ebd45b86d3d 1 parent 00d65a4
@ssafejava ssafejava authored
Showing with 21 additions and 20 deletions.
  1. +17 −0 .jshintrc
  2. +1 −14 Gruntfile.coffee
  3. +3 −6 backbone.layoutmanager.js
View
17 .jshintrc
@@ -0,0 +1,17 @@
+{
+ "browser": true,
+ "boss": true,
+ "immed": false,
+ "eqnull": true,
+ "maxlen": 80,
+ "es3": true,
+ "curly": true,
+ "quotmark": "double",
+ "trailing": true,
+ "unused": true,
+ "undef": true,
+ "globals": {
+ "global": true,
+ "define": true
+ }
+}
View
15 Gruntfile.coffee
@@ -45,20 +45,7 @@ module.exports = ->
testUtil: true
# Allow certain options.
- options:
- browser: true
- boss: true
- immed: false
- eqnull: true
- maxlen: 80
- es3: true
- curly: true
- quotmark: "double"
- trailing: true
- unused: true
- undef: true
- globals:
- global: true
+ options: @file.readJSON ".jshintrc"
# Run QUnit tests for browser environments.
qunit:
View
9 backbone.layoutmanager.js
@@ -4,9 +4,7 @@
* backbone.layoutmanager.js may be freely distributed under the MIT license.
*/
(function(root, factory) {
-"use strict";
-/*global define:true */
-
+ "use strict";
if (typeof define === "function" && define.amd) {
// AMD. Register as an anonymous module.
// Wrap in function so we have access to root via `this`.
@@ -15,10 +13,9 @@
});
} else {
// Browser globals
- root.Backbone.Layout = factory.call(
- root, root.Backbone, root._, root.Backbone.$);
+ root.Backbone.Layout = factory.call(root, root.Backbone, root._,
+ root.Backbone.$);
}
-
}(typeof global === "object" ? global : this, function (Backbone, _, $) {
"use strict";
Please sign in to comment.
Something went wrong with that request. Please try again.