add a getValue to match setValue (it's just a synonym for toString)

This commit is contained in:
Kevin Dangoor 2011-01-12 15:54:39 -05:00
commit 71d98abe1e

View file

@ -81,10 +81,12 @@ var Document = function(text, mode) {
this.modified = true; this.modified = true;
this.fireChangeEvent(0); this.fireChangeEvent(0);
}; };
this.toString = function() { this.toString = function() {
return this.lines.join(this.$getNewLineCharacter()); return this.lines.join(this.$getNewLineCharacter());
}; };
this.getValue = this.toString;
this.getSelection = function() { this.getSelection = function() {
return this.selection; return this.selection;