clone: fix memory leak

This commit is contained in:
jean-emmanuel 2018-10-17 13:13:26 +02:00
parent da8a77e577
commit 4742303418

View file

@ -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 = ''