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.queued = [];
this.stage = stage;
stage.uiPromise.then(() => {
this.parent = stage.ui.querySelector(selector);
const promise = stage.findUiElement(selector);
promise.then((element) => {
this.parent = element;
});
}