diff options
author | Raymond Hill <rhill@raymondhill.net> | 2014-11-24 12:48:33 -0200 |
---|---|---|
committer | Raymond Hill <rhill@raymondhill.net> | 2014-11-24 12:48:33 -0200 |
commit | 369b038f925af0ce3a1f3b228f985a099ac4929e (patch) | |
tree | 9401f9673452501246bfe41d0f793d35b308e097 | |
parent | 1ba3142fdf873e33878396e9c7fdf2a42af10557 (diff) | |
download | uBlock-369b038f925af0ce3a1f3b228f985a099ac4929e.zip uBlock-369b038f925af0ce3a1f3b228f985a099ac4929e.tar.gz uBlock-369b038f925af0ce3a1f3b228f985a099ac4929e.tar.bz2 |
jshint
-rw-r--r-- | meta/crx/vapi-background.js | 2 | ||||
-rw-r--r-- | meta/crx/vapi-common.js | 4 | ||||
-rw-r--r-- | src/js/mirrors.js | 6 | ||||
-rw-r--r-- | src/js/popup.js | 3 | ||||
-rwxr-xr-x[-rw-r--r--] | tools/import-crowdin.sh | 0 |
5 files changed, 9 insertions, 6 deletions
diff --git a/meta/crx/vapi-background.js b/meta/crx/vapi-background.js index 84587d6..ce88e49 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 17879b1..cce22b2 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 9efd17f..46bc6f6 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 bc733df..4a9b904 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 index c6d5e0e..c6d5e0e 100644..100755 --- a/tools/import-crowdin.sh +++ b/tools/import-crowdin.sh |