From a37d7b7f31ead45e26f98200559ba01efce81d27 Mon Sep 17 00:00:00 2001 From: Aiko Mastboom Date: Tue, 23 Apr 2013 13:33:19 +0200 Subject: [PATCH] returned_app called 2 times --- public/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 65ddc46..1623f05 100644 --- a/public/index.html +++ b/public/index.html @@ -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; });