events: missing context passing

This commit is contained in:
jean-emmanuel 2018-10-16 10:53:34 +02:00
parent ec34aed028
commit 6da2d1e425
2 changed files with 2 additions and 2 deletions

View file

@ -84,7 +84,7 @@ module.exports = class Formula extends Widget {
this.conditionState = true
widgetManager.on('change', this.syncHandle.bind(this))
widgetManager.on('change', this.syncHandle.bind(this), {context: this})
if (this.formulaString.length) this.updateValue({options:{}})

View file

@ -18,7 +18,7 @@ module.exports = class _switchers_base extends Widget {
}
widgetManager.on('change', this.syncHandler.bind(this))
widgetManager.on('change', this.syncHandler.bind(this), {context: this})
}