@@ -1,4 +1,4 | |||||
1 |
import { djbase, djclass |
|
1 | import { djbase, djclass } from "../declare"; | |
2 | import _WidgetBase = require("dijit/_WidgetBase"); |
|
2 | import _WidgetBase = require("dijit/_WidgetBase"); | |
3 | import _AttachMixin = require("dijit/_AttachMixin"); |
|
3 | import _AttachMixin = require("dijit/_AttachMixin"); | |
4 | import { Rendition, isNode } from "./traits"; |
|
4 | import { Rendition, isNode } from "./traits"; | |
@@ -61,6 +61,7 export abstract class DjxWidgetBase<Attr | |||||
61 | abstract render(): Rendition<HTMLElement>; |
|
61 | abstract render(): Rendition<HTMLElement>; | |
62 |
|
62 | |||
63 | private _connectEventHandlers() { |
|
63 | private _connectEventHandlers() { | |
|
64 | if (this._eventHandlers) | |||
64 | this._eventHandlers.forEach(({eventName, handlerMethod}) => { |
|
65 | this._eventHandlers.forEach(({ eventName, handlerMethod }) => { | |
65 | const handler = this[handlerMethod as keyof this]; |
|
66 | const handler = this[handlerMethod as keyof this]; | |
66 | if (typeof handler === "function") |
|
67 | if (typeof handler === "function") |
General Comments 0
You need to be logged in to leave comments.
Login now