fix regression

This commit is contained in:
Fabian Jakobs 2011-05-30 11:32:52 +02:00
commit 5a98124d47

View file

@ -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) {