cm-web-modules
Advanced tools
Comparing version 2.3.7 to 2.3.8
{ | ||
"name": "cm-web-modules", | ||
"version": "2.3.7", | ||
"version": "2.3.8", | ||
"description": "Collection of clean and small ES6 modules for the web", | ||
@@ -5,0 +5,0 @@ "main": "src/LibraryManager.js", |
@@ -174,4 +174,7 @@ /** | ||
const eventName = eventListenerElement.dataset.event | ||
const action = eventListenerElement.dataset.listener | ||
const action = eventListenerElement.dataset.action | ||
const delegate = eventListenerElement.dataset.delegate | ||
if(!action) { | ||
console.error("no action defined", eventListenerElement) | ||
} | ||
if (!controller.actions[action]) { | ||
@@ -194,3 +197,3 @@ console.error(context, "You have to add the action \"" + action + "\" to your component.") | ||
} else { | ||
eventListenerElement.addEventListener(eventName, controller.actions[action].bind(this)) | ||
eventListenerElement.addEventListener(eventName, controller.actions[action].bind(controller)) | ||
} | ||
@@ -197,0 +200,0 @@ } |
Sorry, the diff of this file is not supported yet
138297
2309