Fixed promises on Internet Explorer

This commit is contained in:
Marcin Kurczewski
2014-09-04 18:06:25 +02:00
parent ee9fde5402
commit 840039958a
12 changed files with 112 additions and 77 deletions

View File

@ -4,6 +4,7 @@ App.Presenters = App.Presenters || {};
App.Presenters.RegistrationPresenter = function(
jQuery,
util,
promise,
topNavigationPresenter,
messagePresenter,
api) {
@ -13,7 +14,7 @@ App.Presenters.RegistrationPresenter = function(
function init() {
topNavigationPresenter.select('register');
util.loadTemplate('registration-form').then(function(html) {
promise.wait(util.promiseTemplate('registration-form')).then(function(html) {
template = _.template(html);
render();
});