This commit is contained in:
parent
87518da795
commit
8e9808a24e
|
@ -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});
|
||||||
|
|
Loading…
Reference in New Issue