From 56d4cf6a6a38659fe04ad4120d57b425d00b13c9 Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 21 Jan 2015 08:59:23 -0500 Subject: [PATCH] code review: jshint'ed --- platform/firefox/vapi-background.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 33b1916..2d8d2f2 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -19,7 +19,8 @@ Home: https://github.com/gorhill/uBlock */ -/* global punycode */ +/* jshint esnext: true, bitwise: false */ +/* global self, Components, punycode */ // For background page @@ -143,7 +144,7 @@ vAPI.storage = { sqlWhere: function(col, params) { if ( params > 0 ) { - params = Array(params + 1).join('?, ').slice(0, -2); + params = new Array(params + 1).join('?, ').slice(0, -2); return ' WHERE ' + col + ' IN (' + params + ')'; } @@ -1000,7 +1001,7 @@ var httpObserver = { // Probably isn't the best method to identify the source tab if ( tabURI.spec !== lastRequest.openerURL ) { - continue + continue; } sourceTabId = vAPI.tabs.getTabId(tab);