diff options
author | gorhill <rhill@raymondhill.net> | 2015-02-06 17:46:20 -0500 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-02-06 17:46:20 -0500 |
commit | 478155d4f6961993e8439d844775efdab10406fd (patch) | |
tree | 1c886739b3bc55c318626090bce9d57bcec4b767 | |
parent | be8b365e3cea0d7d623db2bbd2fa1f5f72cbc8f6 (diff) | |
download | uBlock-478155d4f6961993e8439d844775efdab10406fd.zip uBlock-478155d4f6961993e8439d844775efdab10406fd.tar.gz uBlock-478155d4f6961993e8439d844775efdab10406fd.tar.bz2 |
code review #704: fix var name accuracy
-rw-r--r-- | src/js/popup.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/popup.js b/src/js/popup.js index 75ce568..e83c070 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; } |