From 5a98124d47aa15fa92c6fe9fcd64a625e818ad4e Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 30 May 2011 11:32:52 +0200 Subject: [PATCH] fix regression --- lib/ace/document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/document.js b/lib/ace/document.js index 70ab0509..4a886886 100644 --- a/lib/ace/document.js +++ b/lib/ace/document.js @@ -128,7 +128,7 @@ var Document = function(text) { * Get a verbatim copy of the given line as it is in the document */ this.getLine = function(row) { - return this.$lines[row] || ""; + return this.$lines ? (this.$lines[row] || "") : ""; }; this.getLines = function(firstRow, lastRow) {