linked props: rm extra method call and fix bindings creation mistake
This commit is contained in:
parent
9df963810d
commit
35252c0a2f
1 changed files with 4 additions and 6 deletions
|
|
@ -156,8 +156,6 @@ class Widget extends EventEmitter {
|
|||
this.errors.id = 'There can only be one root'
|
||||
}
|
||||
|
||||
this.createLinkedPropsBindings()
|
||||
|
||||
this.disabledProps = []
|
||||
|
||||
// cache precision
|
||||
|
|
@ -313,10 +311,10 @@ class Widget extends EventEmitter {
|
|||
widgetManager.on('widget-created', this.linkedCreatedCallback, {context: this})
|
||||
widgetManager.on('prop-changed', this.linkedPropChangedCallback, {context: this})
|
||||
|
||||
} else if (this.linkedCreatedCallback && !Object.keys(this.linkedPropsValue).length) {
|
||||
} else if (this.linkedCreatedCallback && !Object.keys(this.linkedProps).length) {
|
||||
|
||||
widgetManager.off('widget-created', this.linkedCreatedCallback, this)
|
||||
widgetManager.off('prop-changed', this.linkedPropChangedCallback, this)
|
||||
widgetManager.off('widget-created', this.linkedCreatedCallback)
|
||||
widgetManager.off('prop-changed', this.linkedPropChangedCallback)
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -330,7 +328,7 @@ class Widget extends EventEmitter {
|
|||
|
||||
} else if (this.linkedPropsValueCallback && !Object.keys(this.linkedPropsValue).length) {
|
||||
|
||||
widgetManager.off('change', this.linkedValueChangedCallback, this)
|
||||
widgetManager.off('change', this.linkedValueChangedCallback)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue