Merge pull request #2022 from ajaxorg/performance
do not use setInnerHTML since it isn't faster on new browsers
This commit is contained in:
commit
c3bb709318
3 changed files with 4 additions and 4 deletions
|
|
@ -592,7 +592,7 @@ env.editSnippets = function() {
|
||||||
require("ace/ext/language_tools");
|
require("ace/ext/language_tools");
|
||||||
env.editor.setOptions({
|
env.editor.setOptions({
|
||||||
enableBasicAutocompletion: true,
|
enableBasicAutocompletion: true,
|
||||||
enableLiveAutocompletion: true,
|
enableLiveAutocompletion: false,
|
||||||
enableSnippets: true
|
enableSnippets: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ var Marker = function(parentEl) {
|
||||||
this.drawSingleLineMarker(html, range, marker.clazz + " ace_start", config);
|
this.drawSingleLineMarker(html, range, marker.clazz + " ace_start", config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.element = dom.setInnerHtml(this.element, html.join(""));
|
this.element.innerHTML = html.join("");
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$getTop = function(row, layerConfig) {
|
this.$getTop = function(row, layerConfig) {
|
||||||
|
|
|
||||||
|
|
@ -203,7 +203,7 @@ var Text = function(parentEl) {
|
||||||
html, row, !this.$useLineGroups(), row == foldStart ? foldLine : false
|
html, row, !this.$useLineGroups(), row == foldStart ? foldLine : false
|
||||||
);
|
);
|
||||||
lineElement.style.height = config.lineHeight * this.session.getRowLength(row) + "px";
|
lineElement.style.height = config.lineHeight * this.session.getRowLength(row) + "px";
|
||||||
dom.setInnerHtml(lineElement, html.join(""));
|
lineElement.innerHTML = html.join("");
|
||||||
}
|
}
|
||||||
row++;
|
row++;
|
||||||
}
|
}
|
||||||
|
|
@ -310,7 +310,7 @@ var Text = function(parentEl) {
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
}
|
}
|
||||||
this.element = dom.setInnerHtml(this.element, html.join(""));
|
this.element.innerHTML = html.join("");
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$textToken = {
|
this.$textToken = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue