Skip to content

Commit

Permalink
Style fixes related to UMD. Added .jshintrc and included inside Grunt…
Browse files Browse the repository at this point in the history
…file.
  • Loading branch information
ssafejava committed Aug 8, 2013
1 parent 00d65a4 commit 6f81bb8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
17 changes: 17 additions & 0 deletions .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
}
}
15 changes: 1 addition & 14 deletions Gruntfile.coffee
Expand Up @@ -45,20 +45,7 @@ module.exports = ->
testUtil: true testUtil: true


# Allow certain options. # Allow certain options.
options: options: @file.readJSON ".jshintrc"
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


# Run QUnit tests for browser environments. # Run QUnit tests for browser environments.
qunit: qunit:
Expand Down
9 changes: 3 additions & 6 deletions backbone.layoutmanager.js
Expand Up @@ -4,9 +4,7 @@
* backbone.layoutmanager.js may be freely distributed under the MIT license. * backbone.layoutmanager.js may be freely distributed under the MIT license.
*/ */
(function(root, factory) { (function(root, factory) {
"use strict"; "use strict";
/*global define:true */

if (typeof define === "function" && define.amd) { if (typeof define === "function" && define.amd) {
// AMD. Register as an anonymous module. // AMD. Register as an anonymous module.
// Wrap in function so we have access to root via `this`. // Wrap in function so we have access to root via `this`.
Expand All @@ -15,10 +13,9 @@
}); });
} else { } else {
// Browser globals // Browser globals
root.Backbone.Layout = factory.call( root.Backbone.Layout = factory.call(root, root.Backbone, root._,
root, root.Backbone, root._, root.Backbone.$); root.Backbone.$);
} }

}(typeof global === "object" ? global : this, function (Backbone, _, $) { }(typeof global === "object" ? global : this, function (Backbone, _, $) {
"use strict"; "use strict";


Expand Down

0 comments on commit 6f81bb8

Please sign in to comment.