mirror of
https://github.com/esiur/iui.git
synced 2025-05-06 06:42:58 +00:00
include
This commit is contained in:
parent
657e9b7938
commit
c980418197
@ -44,18 +44,15 @@ export default IUI.module(class Include extends IUIElement
|
|||||||
this.innerHTML = t;
|
this.innerHTML = t;
|
||||||
|
|
||||||
//let xeval = (code) => eval(code);
|
//let xeval = (code) => eval(code);
|
||||||
|
|
||||||
if (window?.app?.loaded)
|
|
||||||
{
|
|
||||||
await IUI.create(this);
|
|
||||||
IUI.bind(this, true, "include:" + src,
|
|
||||||
IUI.extend(this._i__bindings.scope, this.scope, true));
|
|
||||||
|
|
||||||
|
if (window?.app?.loaded) {
|
||||||
|
await IUI.create(this);
|
||||||
|
IUI.bind(this, true, "include:" + src, this.scope);
|
||||||
this.refs._build();
|
this.refs._build();
|
||||||
await IUI.created(this);
|
await IUI.created(this);
|
||||||
await IUI.render(this, this._data, true);
|
await IUI.render(this, this._data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// // call create for the new elements
|
// // call create for the new elements
|
||||||
// var newElements = this.querySelectorAll("*");
|
// var newElements = this.querySelectorAll("*");
|
||||||
// for (var i = 0; i < newElements.length; i++) {
|
// for (var i = 0; i < newElements.length; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user