forked from extern/egroupware
Fix onclick to keep originally bound click handler context.
Fixes app.appname.func callbacks had widget as context
This commit is contained in:
parent
442de20d90
commit
277f465c50
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user