Fix onclick to keep originally bound click handler context.

Fixes app.appname.func callbacks had widget as context
This commit is contained in:
nathan 2021-09-14 13:23:17 -06:00
parent 442de20d90
commit 277f465c50

View File

@ -234,7 +234,7 @@ const Et2WidgetMixin = (superClass) =>
var args = Array.prototype.slice.call(arguments);
if(args.indexOf(this) == -1) args.splice(1, 0, this);
return this.onclick.apply(this, args);
return this.onclick(...args);
}
return true;