Move event handler assignment into method
This commit is contained in:
@@ -19,6 +19,9 @@ export default Route.extend({
|
||||
},
|
||||
|
||||
afterModel() {
|
||||
return this.get('kredits').loadContributorsAndProposals();
|
||||
return this.get('kredits').loadContributorsAndProposals()
|
||||
.then(() => {
|
||||
this.get('kredits').addContractEventHandlers();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user