mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-10 23:42:39 +08:00
Use innerHTML
to clear element inner content
This commit is contained in:
parent
0ac3dae104
commit
162a0886b7
1 changed files with 1 additions and 3 deletions
|
@ -77,9 +77,7 @@ class ErrorHandler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
while( this.messagesList.firstChild ){
|
this.messagesList.innerHTML = '';
|
||||||
this.messagesList.removeChild( this.messagesList.firstChild );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue