diff --git a/src/WidgetBase.ts b/src/WidgetBase.ts index a4e45413..dc5fb8d1 100644 --- a/src/WidgetBase.ts +++ b/src/WidgetBase.ts @@ -507,7 +507,8 @@ export class WidgetBase

extends E let { boundFunc, scope } = bindInfo; if (boundFunc === undefined || scope !== bind) { - this._bindFunctionPropertyMap.set(property, { boundFunc: property.bind(bind), scope: bind }); + boundFunc = property.bind(bind) as (...args: any[]) => any; + this._bindFunctionPropertyMap.set(property, { boundFunc, scope: bind }); } return boundFunc; }