close
This commit is contained in:
parent
82561bc25a
commit
3994dc115f
1 changed files with 4 additions and 1 deletions
5
main.js
5
main.js
|
@ -108,11 +108,14 @@ export class SFrame{
|
||||||
return find;
|
return find;
|
||||||
},
|
},
|
||||||
resolve: (r,close=true)=>{
|
resolve: (r,close=true)=>{
|
||||||
if (close&&[...(stear.elem.children)].indexOf(this.#lastRender._) >= 0) stear.elem.removeChild(this.#lastRender._);
|
if (close&&this.#lastRender&&[...(stear.elem.children)].indexOf(this.#lastRender._) >= 0) stear.elem.removeChild(this.#lastRender._);
|
||||||
res(r);
|
res(r);
|
||||||
},
|
},
|
||||||
call: (elem, args)=>{
|
call: (elem, args)=>{
|
||||||
return stear.call(elem,args,layer+1);
|
return stear.call(elem,args,layer+1);
|
||||||
|
},
|
||||||
|
close: ()=>{
|
||||||
|
if (close && this.#lastRender && [...(stear.elem.children)].indexOf(this.#lastRender._) >= 0) stear.elem.removeChild(this.#lastRender._);
|
||||||
}
|
}
|
||||||
}, args);
|
}, args);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue