refactor: new stage UI node finder

This commit is contained in:
cha0s 2019-04-20 21:35:07 -05:00
parent 652e96db4b
commit c46109272a

View File

@ -63,8 +63,9 @@ export class TextNodeRenderer extends Proton.BaseRender {
this._nodePool = new Proton.Pool(); this._nodePool = new Proton.Pool();
this.queued = []; this.queued = [];
this.stage = stage; this.stage = stage;
stage.uiPromise.then(() => { const promise = stage.findUiElement(selector);
this.parent = stage.ui.querySelector(selector); promise.then((element) => {
this.parent = element;
}); });
} }