fixed error introduced by previous commit
This commit is contained in:
parent
e09bc1439e
commit
558206df09
1 changed files with 4 additions and 2 deletions
|
|
@ -92,8 +92,10 @@ var EditSession = function(text, mode) {
|
||||||
doc.on("change", this.onChange.bind(this));
|
doc.on("change", this.onChange.bind(this));
|
||||||
this.on("changeFold", this.onChangeFold.bind(this));
|
this.on("changeFold", this.onChangeFold.bind(this));
|
||||||
|
|
||||||
this.bgTokenizer.setDocument(this.getDocument());
|
if (this.bgTokenizer) {
|
||||||
this.bgTokenizer.start(0);
|
this.bgTokenizer.setDocument(this.getDocument());
|
||||||
|
this.bgTokenizer.start(0);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getDocument = function() {
|
this.getDocument = function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue