From 478155d4f6961993e8439d844775efdab10406fd Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 6 Feb 2015 17:46:20 -0500 Subject: [PATCH] code review #704: fix var name accuracy --- src/js/popup.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/popup.js b/src/js/popup.js index 75ce568fe..e83c070fc 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -45,7 +45,7 @@ var dfHotspots = null; var hostnameToSortableTokenMap = {}; var allDomains = {}; var allDomainCount = 0; -var allDomainRows = []; +var allHostnameRows = []; var touchedDomainCount = 0; var rowsToRecycle = uDom(); var cachedPopupHash = ''; @@ -249,9 +249,9 @@ var buildAllDynamicFilters = function() { // reuse them in-place. rowsToRecycle = uDom('#dynamicFilteringContainer > div:nth-of-type(7) ~ div').detach(); - var n = allDomainRows.length; + var n = allHostnameRows.length; for ( var i = 0; i < n; i++ ) { - addDynamicFilterRow(allDomainRows[i]); + addDynamicFilterRow(allHostnameRows[i]); } if ( dfPaneBuilt !== true ) { @@ -270,7 +270,7 @@ var buildAllDynamicFilters = function() { var renderPrivacyExposure = function() { allDomains = {}; allDomainCount = touchedDomainCount = 0; - allDomainRows = []; + allHostnameRows = []; // Sort hostnames. First-party hostnames must always appear at the top // of the list. @@ -296,7 +296,7 @@ var renderPrivacyExposure = function() { touchedDomainCount += 1; } } - allDomainRows.push(des); + allHostnameRows.push(des); desHostnameDone[des] = true; }