do not use setInnerHTML since it isn't faster on new browsers
This commit is contained in:
parent
416f5582e8
commit
299d174dc7
3 changed files with 4 additions and 4 deletions
|
|
@ -203,7 +203,7 @@ var Text = function(parentEl) {
|
|||
html, row, !this.$useLineGroups(), row == foldStart ? foldLine : false
|
||||
);
|
||||
lineElement.style.height = config.lineHeight * this.session.getRowLength(row) + "px";
|
||||
dom.setInnerHtml(lineElement, html.join(""));
|
||||
lineElement.innerHTML = html.join("");
|
||||
}
|
||||
row++;
|
||||
}
|
||||
|
|
@ -310,7 +310,7 @@ var Text = function(parentEl) {
|
|||
|
||||
row++;
|
||||
}
|
||||
this.element = dom.setInnerHtml(this.element, html.join(""));
|
||||
this.element.innerHTML = html.join("");
|
||||
};
|
||||
|
||||
this.$textToken = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue