##// END OF EJS Templates
minor fix
cin -
r83:2807ab11174c v1.2.5 default
parent child
Show More
@@ -1,4 +1,4
1 import { djbase, djclass, prototype } from "../declare";
1 import { djbase, djclass } from "../declare";
2 2 import _WidgetBase = require("dijit/_WidgetBase");
3 3 import _AttachMixin = require("dijit/_AttachMixin");
4 4 import { Rendition, isNode } from "./traits";
@@ -61,11 +61,12 export abstract class DjxWidgetBase<Attr
61 61 abstract render(): Rendition<HTMLElement>;
62 62
63 63 private _connectEventHandlers() {
64 this._eventHandlers.forEach(({eventName, handlerMethod}) => {
65 const handler = this[handlerMethod as keyof this];
66 if (typeof handler === "function")
67 this.on(eventName, handler.bind(this));
68 });
64 if (this._eventHandlers)
65 this._eventHandlers.forEach(({ eventName, handlerMethod }) => {
66 const handler = this[handlerMethod as keyof this];
67 if (typeof handler === "function")
68 this.on(eventName, handler.bind(this));
69 });
69 70 }
70 71
71 72 _processTemplateNode<T extends (Element | Node | _WidgetBase)>(
General Comments 0
You need to be logged in to leave comments. Login now