Use a cache to speed up doc->screen and screen->doc mapping on very long document.
This commit is contained in:
parent
007125025f
commit
a3496dfad1
4 changed files with 45 additions and 8 deletions
|
|
@ -329,7 +329,7 @@ function Folding() {
|
|||
|
||||
// Notify that fold data has changed.
|
||||
this.$modified = true;
|
||||
this._dispatchEvent("changeFold");
|
||||
this._dispatchEvent("changeFold", { data: fold });
|
||||
|
||||
return fold;
|
||||
};
|
||||
|
|
@ -387,7 +387,7 @@ function Folding() {
|
|||
|
||||
// Notify that fold data has changed.
|
||||
this.$modified = true;
|
||||
this._dispatchEvent("changeFold");
|
||||
this._dispatchEvent("changeFold", { data: fold });
|
||||
}
|
||||
|
||||
this.removeFolds = function(folds) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue