| @@ -62,7 +62,7 export abstract class DjxWidgetBase<Attr | |||||
| 62 | this._eventHandlers.forEach(({eventName, handlerMethod}) => { |
|
62 | this._eventHandlers.forEach(({eventName, handlerMethod}) => { | |
| 63 | const handler = this[handlerMethod as keyof this]; |
|
63 | const handler = this[handlerMethod as keyof this]; | |
| 64 | if (typeof handler === "function") |
|
64 | if (typeof handler === "function") | |
| 65 | this.on(eventName, handler); |
|
65 | this.on(eventName, handler.bind(this)); | |
| 66 | }); |
|
66 | }); | |
| 67 | } |
|
67 | } | |
| 68 |
|
68 | |||
General Comments 0
You need to be logged in to leave comments.
Login now
