mirror of
https://github.com/esiur/iui.git
synced 2026-04-04 23:18:21 +00:00
scope
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import IUIElement from "../Core/IUIElement.js";
|
||||
import { IUI } from "../Core/IUI.js";
|
||||
import RefsCollection from "./RefsCollection.js";
|
||||
|
||||
export default IUI.module(class App extends IUIElement {
|
||||
constructor() {
|
||||
super();
|
||||
this.refs = new RefsCollection(this);
|
||||
}
|
||||
|
||||
create() {
|
||||
@@ -11,8 +13,14 @@ export default IUI.module(class App extends IUIElement {
|
||||
window.app = this;
|
||||
}
|
||||
|
||||
|
||||
created() {
|
||||
IUI.bind(this, this, "/");
|
||||
|
||||
IUI.bind(this, this, "/", {app: this, refs: this.refs});
|
||||
|
||||
// update referencing
|
||||
this.refs._build();
|
||||
|
||||
//IUIElement._make_bindings(this);
|
||||
this.render();
|
||||
this._emit("load", { app: this });
|
||||
|
||||
Reference in New Issue
Block a user