This commit is contained in:
Jiiks 2015-10-29 15:52:12 +02:00
parent f5ad2ab119
commit dc07c79297
1 changed files with 1 additions and 9 deletions

View File

@ -184,15 +184,6 @@ EmoteModule.prototype.init = function() {};
EmoteModule.prototype.obsCallback = function(mutation) {
var self = this;
//Edit injection
if(mutation.addedNodes.length == 1) {
var n = mutation.addedNodes[0];
if(n.parentNode.tagName == "SPAN") {
//Should be edit
self.injectEmote(n.parentNode);
}
}
for(var i = 0 ; i < mutation.addedNodes.length ; ++i) {
var next = mutation.addedNodes.item(i);
if(next) {
@ -200,6 +191,7 @@ EmoteModule.prototype.obsCallback = function(mutation) {
for(var node in nodes) {
if(nodes.hasOwnProperty(node)) {
self.injectEmote(nodes[node]);
console.log(nodes[node]);
}
}
}