From 7a7f2935790a678da960791273e73563cf6c1412 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 3 Nov 2012 20:34:39 +0000 Subject: [PATCH] Fixed typo --- core/modules/treenodes/element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];