diff --git a/core/modules/treenodes/element.js b/core/modules/treenodes/element.js index 2dd745020..248953eff 100644 --- a/core/modules/treenodes/element.js +++ b/core/modules/treenodes/element.js @@ -158,7 +158,7 @@ Element.prototype.addClass = function(className) { this.attributes["class"].push(className); }; -Node.prototype.addStyles = function(styles) { +Element.prototype.addStyles = function(styles) { this.attributes.style = this.attributes.style || {}; for(var t in styles) { this.attributes.style[t] = styles[t];