mirror of
https://github.com/esiur/iui.git
synced 2026-04-04 15:08:21 +00:00
30 lines
658 B
JavaScript
30 lines
658 B
JavaScript
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() {
|
|
this._register("load");
|
|
window.app = this;
|
|
}
|
|
|
|
|
|
created() {
|
|
|
|
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 });
|
|
this.loaded = true;
|
|
}
|
|
|
|
}); |