js: Remove obsolete argument to createTreeWalker.
"createNodeIterator() and createTreeWalker() now have optional arguments and lack a fourth argument which is no longer relevant given entity references never made it into the DOM."
This commit is contained in:
parent
37050c49fc
commit
1f94e0fee6
@ -64,7 +64,7 @@ function isElementInViewport(node) {
|
|||||||
return boundingRect.top >= -20;
|
return boundingRect.top >= -20;
|
||||||
}
|
}
|
||||||
|
|
||||||
var walker = document.createTreeWalker(document.body, 4, null, false);
|
var walker = document.createTreeWalker(document.body, 4, null);
|
||||||
var node;
|
var node;
|
||||||
var textNodes = [];
|
var textNodes = [];
|
||||||
while (node = walker.nextNode()) {
|
while (node = walker.nextNode()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user