FIX: correctly bind `this` when sending a widget action

This commit is contained in:
Robin Ward 2016-11-24 10:59:15 -05:00
parent 84914c5e1f
commit 66f68e8faf
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ export default class Widget {
return this.rerenderResult(() => {
const widget = this._findAncestorWithProperty(name);
if (widget) {
return widget[name](param);
return widget[name].call(widget, param);
}
return this._sendComponentAction(name, param || this.findAncestorModel());