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

@ -8,18 +8,15 @@ App.Presenters.RegistrationPresenter = function(
messagePresenter,
api) {
topNavigationPresenter.select('register');
var $el = jQuery('#content');
var template;
util.loadTemplate('registration-form').then(function(html) {
template = _.template(html);
init();
});
function init() {
render();
topNavigationPresenter.select('register');
util.loadTemplate('registration-form').then(function(html) {
template = _.template(html);
render();
});
}
function render() {
@ -84,6 +81,7 @@ App.Presenters.RegistrationPresenter = function(
};
return {
init: init,
render: render,
};