more debug

This commit is contained in:
Jiiks 2015-10-29 15:58:03 +02:00
parent 585fc7f1f4
commit bbf2c91f8c
1 changed files with 3 additions and 1 deletions

View File

@ -200,15 +200,17 @@ EmoteModule.prototype.obsCallback = function(mutation) {
};
EmoteModule.prototype.getNodes = function(node) {
console.log("GETNODES=>");
var next;
var nodes = [];
var treeWalker = document.createTreeWalker(node, NodeFilter.SHOW_TEXT, null, false);
while(next = treeWalker.nextNode()) {
consol.log("NEXT: " + next);
nodes.push(next);
}
console.log("<=GETNODES");
return nodes;
};