Check if the api "config->events" are functions.

This commit is contained in:
Julia Radzhabova 2017-09-22 16:35:16 +03:00
parent ceb67537ac
commit c1e4b9e903

View file

@ -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});
} }
} }