mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: Register a test waiter rather than using hidden properties
This commit is contained in:
parent
40c944cb36
commit
0348f23f6d
2 changed files with 6 additions and 2 deletions
|
@ -36,6 +36,7 @@ export default Ember.Component.extend({
|
|||
|
||||
loadScript("/javascripts/ace/ace.js", { scriptTag: true }).then(() => {
|
||||
window.ace.require(['ace/ace'], loadedAce => {
|
||||
if (!this.element || this.isDestroying || this.isDestroyed) { return; }
|
||||
const editor = loadedAce.edit(this.$('.ace')[0]);
|
||||
|
||||
editor.setTheme("ace/theme/chrome");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue