mirror of https://github.com/gorhill/uBlock.git
just to keep track of findings re classList
This commit is contained in:
parent
fa7106a23c
commit
513d79f5d9
|
@ -618,6 +618,11 @@ var uBlockCollapser = (function() {
|
||||||
var i = nodes.length;
|
var i = nodes.length;
|
||||||
while ( i-- ) {
|
while ( i-- ) {
|
||||||
node = nodes[i];
|
node = nodes[i];
|
||||||
|
// http://jsperf.com/enumerate-classes
|
||||||
|
// Chromium: classList a bit faster than manually enumerating
|
||||||
|
// class names.
|
||||||
|
// Firefox: classList quite slower than manually enumerating
|
||||||
|
// class names.
|
||||||
vv = node.classList;
|
vv = node.classList;
|
||||||
if ( typeof vv !== 'object' ) { continue; }
|
if ( typeof vv !== 'object' ) { continue; }
|
||||||
j = vv.length || 0;
|
j = vv.length || 0;
|
||||||
|
|
Loading…
Reference in New Issue