From 6680034855446e4ef03bd2e7a00ba6e2c65ee871 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 18 Mar 2014 07:00:24 +0200 Subject: [PATCH] Move globals where they are needed. --- .jshintrc | 6 ------ Gruntfile.js | 3 +++ dist/htmlminifier.js | 2 ++ src/htmlminifier.js | 2 ++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.jshintrc b/.jshintrc index 250c08c..7d113c1 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,10 +1,4 @@ { - "globals": { - "CSSOCompressor": true, - "CSSOTranslator": true, - "cleanInfo": true, - "srcToCSSP": true - }, "browser": true, "eqeqeq": true, "es3": true, diff --git a/Gruntfile.js b/Gruntfile.js index e9638ae..f45240b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -41,6 +41,9 @@ module.exports = function(grunt) { src: { src: '<%= jshint.src.src %>' }, + /*tests: { + src: '<%= jshint.tests.src %>' + },*/ web: { src: '<%= jshint.web.src %>' } diff --git a/dist/htmlminifier.js b/dist/htmlminifier.js index 6196dfa..93697f7 100644 --- a/dist/htmlminifier.js +++ b/dist/htmlminifier.js @@ -407,6 +407,8 @@ } })(typeof exports === 'undefined' ? this : exports); +/* global CSSOCompressor: true, CSSOTranslator: true, cleanInfo: true, srcToCSSP: true */ + (function(global) { 'use strict'; diff --git a/src/htmlminifier.js b/src/htmlminifier.js index bd4e00a..78fa4a1 100644 --- a/src/htmlminifier.js +++ b/src/htmlminifier.js @@ -1,3 +1,5 @@ +/* global CSSOCompressor: true, CSSOTranslator: true, cleanInfo: true, srcToCSSP: true */ + (function(global) { 'use strict'; -- 2.34.1