From d619e4e746fe553f2f64cc33538bc1d9486347e5 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 20 Nov 2014 23:02:34 +0400 Subject: [PATCH] allow passing newLineCharacter ot getValue --- lib/ace/document.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ace/document.js b/lib/ace/document.js index 9207b3f5..a06e3e33 100644 --- a/lib/ace/document.js +++ b/lib/ace/document.js @@ -83,8 +83,8 @@ var Document = function(textOrLines) { /** * Returns all the lines in the document as a single string, joined by the new line character. **/ - this.getValue = function(newLineCharacter) { - return this.getAllLines().join(newLineCharacter || this.getNewLineCharacter()); + this.getValue = function() { + return this.getAllLines().join(this.getNewLineCharacter()); }; /** @@ -213,8 +213,8 @@ var Document = function(textOrLines) { * * @returns {String} **/ - this.getTextRange = function(range, newLineCharacter) { - return this.getLinesForRange(range).join(newLineCharacter || this.getNewLineCharacter()); + this.getTextRange = function(range) { + return this.getLinesForRange(range).join(this.getNewLineCharacter()); }; /**