diff --git a/src/ace/layer/Text.js b/src/ace/layer/Text.js index 8b6989e4..df7f15c4 100644 --- a/src/ace/layer/Text.js +++ b/src/ace/layer/Text.js @@ -59,7 +59,7 @@ ace.layer.Text = function(parentEl) { style.position = "absolute"; style.overflow = "visible"; - for (prop in this.$fontStyles) { + for (var prop in this.$fontStyles) { var value = ace.computedStyle(this.element, prop); style[prop] = value; } @@ -124,7 +124,7 @@ ace.layer.Text = function(parentEl) { var html = []; for ( var i = config.firstRow; i <= config.lastRow; i++) { - html.push("