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:
Florian Bruhin 2015-05-11 20:33:42 +02:00
parent 37050c49fc
commit 1f94e0fee6

View File

@ -64,7 +64,7 @@ function isElementInViewport(node) {
return boundingRect.top >= -20;
}
var walker = document.createTreeWalker(document.body, 4, null, false);
var walker = document.createTreeWalker(document.body, 4, null);
var node;
var textNodes = [];
while (node = walker.nextNode()) {