This commit is contained in:
Jiiks 2015-08-25 14:30:03 +03:00
parent 8e9808a24e
commit bbfbba5a27
1 changed files with 16 additions and 0 deletions

16
js/temp Normal file
View File

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