From ec081776070e8c77375cb69b620179b3d1e830cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Thu, 20 Nov 2014 15:39:19 +0100 Subject: [PATCH] jsHint complaining --- phantomas_custom/modules/analyzeStyleYLT/analyzeStyleYLT.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phantomas_custom/modules/analyzeStyleYLT/analyzeStyleYLT.js b/phantomas_custom/modules/analyzeStyleYLT/analyzeStyleYLT.js index 4f6a960..1c5f04e 100644 --- a/phantomas_custom/modules/analyzeStyleYLT/analyzeStyleYLT.js +++ b/phantomas_custom/modules/analyzeStyleYLT/analyzeStyleYLT.js @@ -39,11 +39,12 @@ * setMetric('cssSelectors') @desc number of selectors (e.g. .foo, .bar { color: red } is counted as two selectors - .foo and .bar) @optional * setMetric('cssDeclarations') @desc number of declarations (e.g. .foo, .bar { color: red } is counted as one declaration - color: red) @optional */ -'use strict'; exports.version = '0.3.a'; exports.module = function(phantomas) { + 'use strict'; + if (!phantomas.getParam('analyze-css')) { phantomas.log('To enable CSS in-depth metrics please run phantomas with --analyze-css option'); return;