Move event handler assignment into method

This commit is contained in:
2018-04-15 20:49:17 +02:00
parent 89d6b920b1
commit a04ab09ed6
2 changed files with 24 additions and 22 deletions
+4 -1
View File
@@ -19,6 +19,9 @@ export default Route.extend({
},
afterModel() {
return this.get('kredits').loadContributorsAndProposals();
return this.get('kredits').loadContributorsAndProposals()
.then(() => {
this.get('kredits').addContractEventHandlers();
});
}
});