clone: don't unregister clone's children value/prop watchers, just disable their reCreateWidget method

This commit is contained in:
bordun 2018-01-31 12:13:44 +01:00
parent 00cc41ddc2
commit 867ccfc2f6

View file

@ -57,8 +57,7 @@ module.exports = class Clone extends _widgets_base {
this.on('widget-created', (e)=>{
if (e.widget == this) return
widgetManager.off(`change.${e.widget.hash}`)
widgetManager.off(`widget-creates.${e.widget.hash}`)
e.widget.reCreateWidget = ()=>{}
})
}