Improved Javascript coding style

This commit is contained in:
Marcin Kurczewski
2014-09-08 22:02:28 +02:00
parent a5c89bc48e
commit 553c33b860
27 changed files with 180 additions and 140 deletions

View File

@ -11,7 +11,7 @@ App.Bootstrap = function(auth, router, util, promise) {
.then(startRouting)
.fail(function(response) {
console.log(response);
alert('Fatal authentication error: ' + response.json.error);
window.alert('Fatal authentication error: ' + response.json.error);
});
});
@ -26,5 +26,7 @@ App.Bootstrap = function(auth, router, util, promise) {
};
App.DI.registerSingleton('bootstrap', App.Bootstrap);
App.DI.registerManual('jQuery', function() { return $; });
App.DI.registerManual('jQuery', function() { return window.$; });
App.DI.registerManual('pathJs', function() { return window.Path; });
App.DI.registerManual('_', function() { return window._; });
App.DI.get('bootstrap');