mirror of https://github.com/gorhill/uBlock.git
minor code review
This commit is contained in:
parent
c52f021356
commit
13969ed937
|
@ -814,8 +814,10 @@ var uBlockCollapser = (function() {
|
||||||
// effect on the document), and thus must be logged if needed.
|
// effect on the document), and thus must be logged if needed.
|
||||||
var addedNodesHandler = function() {
|
var addedNodesHandler = function() {
|
||||||
addedNodeListsTimer = null;
|
addedNodeListsTimer = null;
|
||||||
var nodeList, iNode, node;
|
var iNodeList = addedNodeLists.length,
|
||||||
while ( (nodeList = addedNodeLists.pop()) ) {
|
nodeList, iNode, node;
|
||||||
|
while ( iNodeList-- ) {
|
||||||
|
nodeList = addedNodeLists[iNodeList];
|
||||||
iNode = nodeList.length;
|
iNode = nodeList.length;
|
||||||
while ( iNode-- ) {
|
while ( iNode-- ) {
|
||||||
node = nodeList[iNode];
|
node = nodeList[iNode];
|
||||||
|
@ -829,6 +831,7 @@ var uBlockCollapser = (function() {
|
||||||
collapser.iframesFromNode(node);
|
collapser.iframesFromNode(node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
addedNodeLists.length = 0;
|
||||||
if ( contextNodes.length !== 0 ) {
|
if ( contextNodes.length !== 0 ) {
|
||||||
idsFromNodeList(selectNodes('[id]'));
|
idsFromNodeList(selectNodes('[id]'));
|
||||||
classesFromNodeList(selectNodes('[class]'));
|
classesFromNodeList(selectNodes('[class]'));
|
||||||
|
|
Loading…
Reference in New Issue