Added support for parameters in presenters

This commit is contained in:
Marcin Kurczewski
2014-09-03 09:10:26 +02:00
parent 7c8e473e1b
commit 731b98219d
12 changed files with 83 additions and 48 deletions

View File

@ -3,13 +3,10 @@ App.Presenters = App.Presenters || {};
App.Presenters.UserListPresenter = function(jQuery, topNavigationPresenter, appState) {
topNavigationPresenter.select('users');
var $el = jQuery('#content');
init();
function init() {
topNavigationPresenter.select('users');
render();
}
@ -18,6 +15,7 @@ App.Presenters.UserListPresenter = function(jQuery, topNavigationPresenter, appS
};
return {
init: init,
render: render
};