Commit 6f1e72f8 authored by Julia Radzhabova's avatar Julia Radzhabova

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

parent 02489014
...@@ -286,7 +286,7 @@ ...@@ -286,7 +286,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});
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment