1
0
mirror of /repos/Prototyper.git synced 2025-12-30 06:31:32 +01:00

returned_app called 2 times

This commit is contained in:
Aiko Mastboom 2013-04-23 13:33:19 +02:00
parent 1bd5c1c588
commit a37d7b7f31

View File

@ -498,10 +498,12 @@ var app = {
vm: {}
};
loadConfig(app, config_location, app.vm, function (err, app) {
loadConfig(app, config_location, app.vm, function (err, returned_app) {
if (err) {
console.log('Error loading config', err);
}
// TODO: callback called twice, first time returned app is null
console.log('returned app', returned_app);
//initializeViewModels(app, viewModels);
app.state['running'] = true;
});