Optimized sub routing in presenters

This commit is contained in:
Marcin Kurczewski
2014-09-07 09:30:48 +02:00
parent 73214396ce
commit bfee96c59e
4 changed files with 40 additions and 28 deletions

View File

@ -2,7 +2,7 @@ var App = App || {};
App.Bootstrap = function(auth, router, util, promise) {
util.initPresenter(function() { return App.DI.get('topNavigationPresenter'); });
util.initPresenter('topNavigationPresenter');
promise.wait(auth.tryLoginFromCookie())
.then(startRouting)