fix addActionHandler

This commit is contained in:
Yuri Kuznetsov
2023-08-14 14:12:51 +03:00
parent af809c66b1
commit d86a8e554b

View File

@@ -80,7 +80,9 @@ class View extends BullView {
addActionHandler(action, handler) {
const fullAction = `click [data-action="${action}"]`;
this.events[fullAction] = e => handler(e.originalEvent, e.currentTarget);
this.events[fullAction] = e => {
handler.call(this, e.originalEvent, e.currentTarget);
};
}
/**