Check if the api "config->events" are functions.
This commit is contained in:
parent
ceb67537ac
commit
c1e4b9e903
|
@ -285,7 +285,7 @@
|
||||||
_onAppReady();
|
_onAppReady();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handler) {
|
if (handler && typeof handler == "function") {
|
||||||
res = handler.call(_self, {target: _self, data: msg.data});
|
res = handler.call(_self, {target: _self, data: msg.data});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue