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

@ -86,6 +86,8 @@ var Document = function(text, mode) {
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;
}; };