From abdbbd55ddc780df3c70d7b9a522bcf4bdd2d612 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 26 Oct 2014 15:53:33 -0400 Subject: [PATCH] jshint --- src/js/info.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/js/info.js b/src/js/info.js index 1a28f74..2baad19 100644 --- a/src/js/info.js +++ b/src/js/info.js @@ -54,7 +54,7 @@ function updateRequestData(callback) { .sort(function(a,b){return b.when-a.when;}) .slice(0, maxRequests); callback(requests); - } + }; var request = { what: 'getRequestLogs', pageURL: targetUrl !== 'all' ? targetUrl : null @@ -107,7 +107,7 @@ function renderPageUrls() { // Remove whatever was put there in a previous call uDom('#selectPageUrls > option').remove(); var builtinOptions = uDom('#selectPageUrlsTemplate > option'); - var n = builtinOptions.length; + n = builtinOptions.length; for ( i = 0; i < n; i++ ) { option = builtinOptions.at(i).clone(); if ( option.val() === targetUrl ) { @@ -118,7 +118,8 @@ function renderPageUrls() { var pageURLs = r.pageURLs.sort(); var pageURL, option; - for ( var i = 0; i < pageURLs.length; i++ ) { + n = pageURLs.length; + for ( i = 0; i < n; i++ ) { pageURL = pageURLs[i]; // Behind-the-scene entry is always present, no need to recreate it if ( pageURL === r.behindTheSceneURL ) { @@ -159,8 +160,6 @@ function renderStats() { renderLocalized('statsPageLocalStoragesCleared', { count: renderNumber(r.localStorageRemovedCounter) }); renderLocalized('statsPageBrowserCacheCleared', { count: renderNumber(r.browserCacheClearedCounter) }); - var blockedAllCount = r.globalNetStats.blocked.all; - renderNumbers({ '#blockedAllCount': requestStats.blocked.all, '#blockedMainFrameCount': blockedStats.main_frame, @@ -265,7 +264,7 @@ var renderRequests = function() { syncWithFilters(); }; updateRequestData(onResponseReceived); -} +}; /******************************************************************************/