allow passing line array to edit session

This commit is contained in:
nightwing 2012-05-20 22:33:38 +04:00
commit b0224484ae

View file

@ -86,7 +86,7 @@ var EditSession = function(text, mode) {
return str;
}
if (typeof text == "object") {
if (typeof text == "object" && text.getLine) {
this.setDocument(text);
} else {
this.setDocument(new Document(text));