App init bugfixes

This commit is contained in:
Igor Zhukov 2014-09-19 16:23:03 +04:00
parent a9f080be75
commit bc5c2d624c

View File

@ -81,7 +81,20 @@
i18n_ng: Config.I18n.locale == defaultLocale, // Already included i18n_ng: Config.I18n.locale == defaultLocale, // Already included
i18n_messages: false, i18n_messages: false,
i18n_fallback: false i18n_fallback: false
} },
checkReady = function checkReady () {
var i, ready = true;
for (i in bootReady) {
if (bootReady.hasOwnProperty(i) && bootReady[i] === false) {
ready = false;
break;
}
}
if (ready) {
bootReady.boot = false;
angular.bootstrap(document, ['myApp']);
}
};
switch (layout) { switch (layout) {
case 'mobile': Config.Mobile = true; break; case 'mobile': Config.Mobile = true; break;
@ -131,19 +144,5 @@
bootReady.dom = true; bootReady.dom = true;
checkReady(); checkReady();
}); });
var checkReady = function checkReady () {
var i, ready = true;
for (i in bootReady) {
if (bootReady.hasOwnProperty(i) && bootReady[i] === false) {
ready = false;
break;
}
}
if (ready) {
bootReady.boot = false;
angular.bootstrap(document, ['myApp']);
}
}
}); });
})(); })();