From 369b038f925af0ce3a1f3b228f985a099ac4929e Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 24 Nov 2014 12:48:33 -0200 Subject: [PATCH] jshint --- meta/crx/vapi-background.js | 2 +- meta/crx/vapi-common.js | 4 +++- src/js/mirrors.js | 6 +++--- src/js/popup.js | 3 ++- tools/import-crowdin.sh | 0 5 files changed, 9 insertions(+), 6 deletions(-) mode change 100644 => 100755 tools/import-crowdin.sh diff --git a/meta/crx/vapi-background.js b/meta/crx/vapi-background.js index 84587d6f7..ce88e4964 100644 --- a/meta/crx/vapi-background.js +++ b/meta/crx/vapi-background.js @@ -75,7 +75,7 @@ vAPI.tabs.get = function(tabId, callback) { return; } callback(tab); - } + }; if ( tabId !== null ) { chrome.tabs.get(tabId, onTabReady); return; diff --git a/meta/crx/vapi-common.js b/meta/crx/vapi-common.js index 17879b1c0..cce22b22a 100644 --- a/meta/crx/vapi-common.js +++ b/meta/crx/vapi-common.js @@ -21,6 +21,8 @@ // For background page or non-background pages +/* global self, vAPI */ + /******************************************************************************/ (function() { @@ -36,7 +38,7 @@ self.vAPI = self.vAPI || {}; var setScriptDirection = function(language) { document.body.setAttribute( 'dir', - ~['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) ? 'rtl' : 'ltr' + ['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) !== -1 ? 'rtl' : 'ltr' ); }; diff --git a/src/js/mirrors.js b/src/js/mirrors.js index 9efd17f38..46bc6f617 100644 --- a/src/js/mirrors.js +++ b/src/js/mirrors.js @@ -20,9 +20,7 @@ */ /* jshint bitwise: false */ -/* global µBlock, YaMD5 */ - -'use strict'; +/* global vAPI, µBlock, YaMD5 */ /******************************************************************************/ @@ -30,6 +28,8 @@ µBlock.mirrors = (function() { +'use strict'; + /******************************************************************************/ // To show keys in local storage from console: diff --git a/src/js/popup.js b/src/js/popup.js index bc733df23..4a9b904c5 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -20,12 +20,13 @@ */ /* global vAPI, uDom */ -'use strict'; /******************************************************************************/ (function() { +'use strict'; + /******************************************************************************/ var stats; diff --git a/tools/import-crowdin.sh b/tools/import-crowdin.sh old mode 100644 new mode 100755