From 71d98abe1ef4739416e999d56f542e35edbf55f3 Mon Sep 17 00:00:00 2001 From: Kevin Dangoor Date: Wed, 12 Jan 2011 15:54:39 -0500 Subject: [PATCH] add a getValue to match setValue (it's just a synonym for toString) --- lib/ace/document.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ace/document.js b/lib/ace/document.js index dc2389fb..91548c21 100644 --- a/lib/ace/document.js +++ b/lib/ace/document.js @@ -81,10 +81,12 @@ var Document = function(text, mode) { this.modified = true; this.fireChangeEvent(0); }; - + this.toString = function() { return this.lines.join(this.$getNewLineCharacter()); }; + + this.getValue = this.toString; this.getSelection = function() { return this.selection;