mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-16 10:21:23 +01:00
Use Et2Template.clear()
This commit is contained in:
parent
2a2c1d8eff
commit
876295686b
@ -290,10 +290,7 @@ export class Et2Template extends Et2Widget(LitElement)
|
||||
this.loading = new Promise(async(resolve, reject) =>
|
||||
{
|
||||
// Empty in case load was called again
|
||||
while(this.childNodes.length > 0)
|
||||
{
|
||||
this.lastElementChild.remove();
|
||||
}
|
||||
this.clear();
|
||||
|
||||
// Get template XML
|
||||
let xml = await this.findTemplate();
|
||||
@ -442,11 +439,6 @@ export class Et2Template extends Et2Widget(LitElement)
|
||||
protected clear()
|
||||
{
|
||||
// Clear
|
||||
if(this.childNodes.length > 0)
|
||||
{
|
||||
console.info(this.templateName + " has children, clearing");
|
||||
debugger;
|
||||
}
|
||||
while(this.firstChild) this.removeChild(this.lastChild);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user