This commit is contained in:
Jiiks 2015-08-25 14:29:01 +03:00
parent 87518da795
commit 8e9808a24e
1 changed files with 2 additions and 2 deletions

View File

@ -3,12 +3,12 @@ var observer;
(function() { (function() {
observer = new MutationObserver(function(mutations) { observer = new MutationObserver(function(mutations) {
mutations.forEach(mutation) { mutations.forEach(function(mutation) {
for(var i = 0 ; i < mutation.addedNodes.length ; ++i) { for(var i = 0 ; i < mutation.addedNodes.length ; ++i) {
var next = mutation.addedNodes.item(i); var next = mutation.addedNodes.item(i);
console.log(next); console.log(next);
} }
} });
}); });
obsever.observe(document, {childList: true, subtree: true}); obsever.observe(document, {childList: true, subtree: true});