2
0
mirror of https://github.com/esiur/iui.git synced 2025-05-06 06:42:58 +00:00
This commit is contained in:
Ahmed Zamil 2024-07-08 13:37:29 +03:00
parent 657e9b7938
commit c980418197

View File

@ -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++) {