widget: don't check props when parent widget emits created event

This commit is contained in:
jean-emmanuel 2018-03-15 12:32:12 +01:00
parent c14248ff30
commit 4d842c45b2

View file

@ -85,8 +85,8 @@ class Widget extends EventEmitter {
widgetManager.on(`widget-created.${this.hash}`, (e)=>{
var {id, widget} = e
if (widget == this.parent) return
if (widget == this) id = 'this'
if (widget == this.parent) id = 'parent'
if (this.linkedProps[id]) {
this.updateProps(this.linkedProps[id], widget)
}