clone: prevent cleanClone if widget is empty

This commit is contained in:
jean-emmanuel 2018-03-15 12:30:51 +01:00
parent 0fb145f83a
commit be5556c63e

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 = []