fix setDefaultValue for useWorker

This commit is contained in:
nightwing 2013-04-09 22:14:30 +04:00
commit 886da0d0dc

View file

@ -159,11 +159,10 @@ var EditSession = function(text, mode) {
text = new Document(text); text = new Document(text);
this.setDocument(text); this.setDocument(text);
this.selection = new Selection(this); this.selection = new Selection(this);
this.setMode(mode);
config.resetOptions(this); config.resetOptions(this);
this.setMode(mode);
config._emit("session", this); config._emit("session", this);
}; };