formatting

This commit is contained in:
Artur Girenko 2016-03-20 12:10:09 +01:00
parent dfa5cdece8
commit cadeb152fc
1 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ var serverHost = null; // will be set dynamically
var fileBasePath = null; // will be set dynamically
var evaluate = eval; // This is needed, direct calls to eval does not work (RN packager???)
var externalModules = {};
var evalListeners = [ // Functions to be called after js file is loaded and evaluated
var evalListeners = [ // Functions to be called after each js file is loaded and evaluated
function (url) {
if (url.indexOf('jsloader') > -1) {
shimJsLoader();
@ -30,8 +30,7 @@ var evalListeners = [ // Functions to be called after js file is loaded and eval
if (url.indexOf('/figwheel/client/socket') > -1) {
setCorrectWebSocketImpl();
}
}
];
}];
var figwheelApp = function (platform, devHost) {
return React.createClass({
@ -176,6 +175,7 @@ function setCorrectWebSocketImpl() {
return WebSocket;
};
}
function loadApp(platform, devHost, onLoadCb) {
serverHost = devHost;
fileBasePath = config.basePath + platform;