filter actions that are dispatched

This commit is contained in:
nklhrstv 2020-02-18 17:25:45 +02:00
parent 2f57ab81bf
commit 0cfaa26115

View file

@ -58,7 +58,7 @@ function Core() {
events.off(name, listener);
}
function dispatch(action, model) {
if (!active) {
if (!active || typeof action === 'undefined') {
return false;
}