clone: prevent cleanClone if widget is empty

This commit is contained in:
jean-emmanuel 2018-03-15 12:30:51 +01:00
parent 36ee7a7926
commit c14248ff30

View file

@ -101,6 +101,8 @@ module.exports = class Clone extends Widget {
cleanClone() {
if (!this.childrenHashes.length) return
widgetManager.removeWidgets(this.childrenHashes)
this.widget.innerHTML = ''
this.childrenHashes = []