Move vAPI into .jshintrc as a global

This commit is contained in:
Deathamns 2014-10-19 16:44:09 +02:00
parent 171619506b
commit 1a83d1a753
13 changed files with 14 additions and 13 deletions

View file

@ -13,6 +13,7 @@
"newcap": false, "newcap": false,
"-W058": true, // suppress "Missing '()' invoking a constructor" message "-W058": true, // suppress "Missing '()' invoking a constructor" message
"globals": { "globals": {
"vAPI": false,
"chrome": false, "chrome": false,
"safari": false, "safari": false,
"Components": false // global variable in Firefox "Components": false // global variable in Firefox

View file

@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
/* global µBlock, vAPI, uDom */ /* global µBlock, uDom */
'use strict'; 'use strict';
/******************************************************************************/ /******************************************************************************/

View file

@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
/* global µBlock, vAPI, uDom */ /* global µBlock, uDom */
'use strict'; 'use strict';
/******************************************************************************/ /******************************************************************************/

View file

@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
/* global µBlock, vAPI, YaMD5 */ /* global µBlock, YaMD5 */
'use strict'; 'use strict';
/******************************************************************************* /*******************************************************************************

View file

@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
/* global µBlock, vAPI */ /* global µBlock */
'use strict'; 'use strict';
/******************************************************************************/ /******************************************************************************/

View file

@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
/* global µBlock, vAPI, YaMD5 */ /* global µBlock, YaMD5 */
'use strict'; 'use strict';
/******************************************************************************/ /******************************************************************************/

View file

@ -20,7 +20,7 @@
*/ */
/* jshint bitwise: false */ /* jshint bitwise: false */
/* global µBlock, vAPI, YaMD5 */ /* global µBlock, YaMD5 */
'use strict'; 'use strict';
/******************************************************************************/ /******************************************************************************/

View file

@ -20,7 +20,7 @@
*/ */
/* jshint bitwise: false */ /* jshint bitwise: false */
/* global µBlock, vAPI */ /* global µBlock */
'use strict'; 'use strict';
/******************************************************************************* /*******************************************************************************
@ -460,7 +460,7 @@ PageStore.prototype.updateBadge = function() {
var iconStr = ''; var iconStr = '';
if ( µb.userSettings.showIconBadge && netFiltering && this.perLoadBlockedRequestCount ) { if ( µb.userSettings.showIconBadge && netFiltering && this.perLoadBlockedRequestCount ) {
// Safari knows numbers only, 0 (zero) means empty badge // Safari can't show formatted strings, only integers.
if (vAPI.safari) { if (vAPI.safari) {
iconStr = this.perLoadBlockedRequestCount; iconStr = this.perLoadBlockedRequestCount;
} }

View file

@ -20,7 +20,7 @@
*/ */
/* jshint bitwise: false */ /* jshint bitwise: false */
/* global uDom, vAPI */ /* global uDom */
'use strict'; 'use strict';
/******************************************************************************/ /******************************************************************************/

View file

@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
/* global µBlock, vAPI, punycode, publicSuffixList */ /* global µBlock, punycode, publicSuffixList */
'use strict'; 'use strict';
/******************************************************************************/ /******************************************************************************/

View file

@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
/* global µBlock, vAPI */ /* global µBlock */
'use strict'; 'use strict';
/******************************************************************************/ /******************************************************************************/

View file

@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
/* global µBlock, vAPI */ /* global µBlock */
'use strict'; 'use strict';
/******************************************************************************/ /******************************************************************************/

View file

@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
/* global µBlock, vAPI */ /* global µBlock */
'use strict'; 'use strict';
/******************************************************************************/ /******************************************************************************/