From 8e9808a24eff869fe7fc5e4c6e7672b58f92a18e Mon Sep 17 00:00:00 2001 From: Jiiks Date: Tue, 25 Aug 2015 14:29:01 +0300 Subject: [PATCH] m --- js/emotemodule.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/emotemodule.js b/js/emotemodule.js index f3197c6a..8dbcec4b 100644 --- a/js/emotemodule.js +++ b/js/emotemodule.js @@ -3,12 +3,12 @@ var observer; (function() { observer = new MutationObserver(function(mutations) { - mutations.forEach(mutation) { + 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});