formula: correct change event emit

This commit is contained in:
jean-emmanuel 2017-07-27 13:11:44 +02:00
parent 7c74ddd0ad
commit 404a445484

View file

@ -143,7 +143,7 @@ module.exports = class Formula extends _widgets_base {
this.showValue()
if (e.options.sync && this.conditionState) this.widget.trigger({type: 'change',id: this.getProp('id'),widget: this.widget, linkId: this.getProp('linkId'), options: e.options})
if (e.options.sync && this.conditionState) this.widget.trigger({type: 'change',id: this.getProp('id'),widget: this, linkId: this.getProp('linkId'), options: e.options})
if (e.options.send && this.conditionState) this.sendValue()
} catch(err) {