Permalink
Browse files

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

…file.
  • Loading branch information...
1 parent 00d65a4 commit 6f81bb892ead7207c9220dbce6302ebd45b86d3d @ssafejava ssafejava committed Aug 8, 2013
Showing with 21 additions and 20 deletions.
  1. +17 −0 .jshintrc
  2. +1 −14 Gruntfile.coffee
  3. +3 −6 backbone.layoutmanager.js
View
@@ -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
@@ -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:
@@ -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";

0 comments on commit 6f81bb8

Please sign in to comment.