Use a cache to speed up doc->screen and screen->doc mapping on very long document.

This commit is contained in:
Julian Viereck 2011-04-29 13:38:59 +02:00
commit a3496dfad1
4 changed files with 45 additions and 8 deletions

View file

@ -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) {