From fff108a63f894a33f03c52f4e3c0577234ca8974 Mon Sep 17 00:00:00 2001 From: Doug Fritz Date: Thu, 4 Sep 2014 17:33:25 -0700 Subject: [PATCH] jshint browser so things like document do not have to be declared as globals --- .jshintrc | 3 ++- elements/Gui.js | 2 -- elements/controller-number/controller-number.js | 2 +- elements/gui-panel/gui-panel.js | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.jshintrc b/.jshintrc index 1419d9f..0b99fb8 100644 --- a/.jshintrc +++ b/.jshintrc @@ -9,5 +9,6 @@ "noarg": true, "undef": true, "unused": "vars", - "strict": true + "strict": true, + "browser": true } diff --git a/elements/Gui.js b/elements/Gui.js index 24d30f6..a8bda49 100644 --- a/elements/Gui.js +++ b/elements/Gui.js @@ -1,5 +1,3 @@ -/* globals document */ - (function(scope) { 'use strict'; diff --git a/elements/controller-number/controller-number.js b/elements/controller-number/controller-number.js index 28e5c94..f678c81 100644 --- a/elements/controller-number/controller-number.js +++ b/elements/controller-number/controller-number.js @@ -1,4 +1,4 @@ -/* globals Gui, Polymer, window */ +/* globals Gui, Polymer */ 'use strict'; /* diff --git a/elements/gui-panel/gui-panel.js b/elements/gui-panel/gui-panel.js index c285fed..e70caca 100644 --- a/elements/gui-panel/gui-panel.js +++ b/elements/gui-panel/gui-panel.js @@ -1,4 +1,4 @@ -/* globals Polymer, window, document, Path, Gui */ +/* globals Polymer, Path, Gui */ 'use strict'; // [ ] scrolling when docked