mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 11:22:38 +01:00
code review #704: fix var name accuracy
This commit is contained in:
parent
be8b365e3c
commit
478155d4f6
@ -45,7 +45,7 @@ var dfHotspots = null;
|
|||||||
var hostnameToSortableTokenMap = {};
|
var hostnameToSortableTokenMap = {};
|
||||||
var allDomains = {};
|
var allDomains = {};
|
||||||
var allDomainCount = 0;
|
var allDomainCount = 0;
|
||||||
var allDomainRows = [];
|
var allHostnameRows = [];
|
||||||
var touchedDomainCount = 0;
|
var touchedDomainCount = 0;
|
||||||
var rowsToRecycle = uDom();
|
var rowsToRecycle = uDom();
|
||||||
var cachedPopupHash = '';
|
var cachedPopupHash = '';
|
||||||
@ -249,9 +249,9 @@ var buildAllDynamicFilters = function() {
|
|||||||
// reuse them in-place.
|
// reuse them in-place.
|
||||||
rowsToRecycle = uDom('#dynamicFilteringContainer > div:nth-of-type(7) ~ div').detach();
|
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++ ) {
|
for ( var i = 0; i < n; i++ ) {
|
||||||
addDynamicFilterRow(allDomainRows[i]);
|
addDynamicFilterRow(allHostnameRows[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( dfPaneBuilt !== true ) {
|
if ( dfPaneBuilt !== true ) {
|
||||||
@ -270,7 +270,7 @@ var buildAllDynamicFilters = function() {
|
|||||||
var renderPrivacyExposure = function() {
|
var renderPrivacyExposure = function() {
|
||||||
allDomains = {};
|
allDomains = {};
|
||||||
allDomainCount = touchedDomainCount = 0;
|
allDomainCount = touchedDomainCount = 0;
|
||||||
allDomainRows = [];
|
allHostnameRows = [];
|
||||||
|
|
||||||
// Sort hostnames. First-party hostnames must always appear at the top
|
// Sort hostnames. First-party hostnames must always appear at the top
|
||||||
// of the list.
|
// of the list.
|
||||||
@ -296,7 +296,7 @@ var renderPrivacyExposure = function() {
|
|||||||
touchedDomainCount += 1;
|
touchedDomainCount += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
allDomainRows.push(des);
|
allHostnameRows.push(des);
|
||||||
desHostnameDone[des] = true;
|
desHostnameDone[des] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user