Grigore Robert George
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/dom_components/model/Component.ts
|
|
|
@ -508,7 +508,7 @@ export default class Component extends StyleableModel<ComponentProperties> { |
|
|
|
* component.replaceWith('<div>Some new content</div>'); |
|
|
|
* // -> Component
|
|
|
|
*/ |
|
|
|
replaceWith(el: Component) { |
|
|
|
replaceWith(el: Component | String) { |
|
|
|
const coll = this.collection; |
|
|
|
const at = coll.indexOf(this); |
|
|
|
coll.remove(this); |
|
|
|
|