Added page title management (closed #33)

This commit is contained in:
Marcin Kurczewski
2014-09-11 13:59:12 +02:00
parent 2bb20c49fd
commit c1739d1d1d
18 changed files with 65 additions and 26 deletions

View File

@ -1,6 +1,6 @@
var App = App || {};
App.Router = function(pathJs, _, jQuery, util, appState) {
App.Router = function(pathJs, _, jQuery, util, appState, presenterManager) {
var root = '#/';
@ -47,7 +47,7 @@ App.Router = function(pathJs, _, jQuery, util, appState) {
additionalParams,
{previousRoute: pathJs.routes.previous});
util.initContentPresenter( presenterName, finalParams);
presenterManager.switchContentPresenter( presenterName, finalParams);
});
}
@ -59,4 +59,4 @@ App.Router = function(pathJs, _, jQuery, util, appState) {
};
App.DI.registerSingleton('router', ['pathJs', '_', 'jQuery', 'util', 'appState'], App.Router);
App.DI.registerSingleton('router', ['pathJs', '_', 'jQuery', 'util', 'appState', 'presenterManager'], App.Router);