create selection after the document
This commit is contained in:
parent
30923b0b1e
commit
f9d3155f08
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,6 @@ var NO_CHANGE_DELTAS = {};
|
|||
|
||||
var EditSession = function(text, mode) {
|
||||
this.$modified = true;
|
||||
this.selection = new Selection(this);
|
||||
this.$breakpoints = [];
|
||||
this.$wrapData = [];
|
||||
this.listeners = [];
|
||||
|
|
@ -60,6 +59,7 @@ var EditSession = function(text, mode) {
|
|||
this.setDocument(new Document(text));
|
||||
}
|
||||
|
||||
this.selection = new Selection(this);
|
||||
if (mode)
|
||||
this.setMode(mode);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue