|
|
|
@ -543,10 +543,10 @@ export default () => { |
|
|
|
* Remove all components |
|
|
|
* @return {this} |
|
|
|
*/ |
|
|
|
clear() { |
|
|
|
clear(opts = {}) { |
|
|
|
this.getComponents() |
|
|
|
.map(i => i) |
|
|
|
.forEach(i => i.remove()); |
|
|
|
.forEach(i => i.remove(opts)); |
|
|
|
return this; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -558,7 +558,7 @@ export default () => { |
|
|
|
* @private |
|
|
|
*/ |
|
|
|
setComponents(components, opt = {}) { |
|
|
|
this.clear().addComponent(components, opt); |
|
|
|
this.clear(opt).addComponent(components, opt); |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
|