clone: fix memory leak
This commit is contained in:
parent
33a8ad9665
commit
48254a2f18
1 changed files with 1 additions and 2 deletions
|
|
@ -113,8 +113,7 @@ class Clone extends Container {
|
|||
//console.log('clear clone',this.getProp('id'))
|
||||
|
||||
// unregister cloned content
|
||||
widgetManager.removeWidgets(this.children)
|
||||
this.children = []
|
||||
widgetManager.removeWidgets(this.getAllChildren())
|
||||
|
||||
// clean inner html
|
||||
this.widget.innerHTML = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue