clone: hot fix @MartinHN #395

This commit is contained in:
jean-emmanuel 2018-10-20 19:49:39 +02:00
parent 04366ee8df
commit 022074accc
2 changed files with 2 additions and 5 deletions

View file

@ -1,10 +1,5 @@
# Changelog
# 0.38.1
- bug fixes
- regression with `@{parent}` calls
## 0.38.0
- bug fixes

View file

@ -44,6 +44,8 @@ class Clone extends Container {
// global listenner to catch cloneTarget's creation if no target is locked
widgetManager.on('widget-created', (e)=>{
if (this.cloneTarget) return
var {id, widget} = e
if (id === this.getProp('widgetId') && this.isValidCloneTarget(widget)) {