Removed PathJS dependency; refactored routing

This commit is contained in:
Marcin Kurczewski
2014-10-09 21:41:46 +02:00
parent 60ab927558
commit 6afd60feba
30 changed files with 293 additions and 262 deletions

View File

@ -1,6 +1,6 @@
var App = App || {};
App.Bootstrap = function(auth, router, util, promise, presenterManager) {
App.Bootstrap = function(auth, router, promise, presenterManager) {
promise.wait(
auth.tryLoginFromCookie(),
@ -25,7 +25,7 @@ App.Bootstrap = function(auth, router, util, promise, presenterManager) {
};
App.DI.registerSingleton('bootstrap', ['auth', 'router', 'util', 'promise', 'presenterManager'], App.Bootstrap);
App.DI.registerSingleton('bootstrap', ['auth', 'router', 'promise', 'presenterManager'], App.Bootstrap);
App.DI.registerManual('jQuery', function() { return window.$; });
App.DI.registerManual('pathJs', function() { return window.pathjs; });
App.DI.registerManual('_', function() { return window._; });