refactor: new stage UI node finder
This commit is contained in:
parent
652e96db4b
commit
c46109272a
|
@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user