FIX: define actions on connector class early (#6763)

This would prevent failure with connectors templates defining actions as closures. In this case action existence is checked at compile time and not runtime.
This commit is contained in:
Joffrey JAFFEUX 2018-12-13 15:43:30 +01:00 committed by GitHub
parent 73c776d881
commit 5cb99d08ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ export default Ember.Component.extend({
const connectorClass = this.get("connector.connectorClass");
connectorClass.setupComponent.call(this, args, this);
this.set("actions", connectorClass.actions);
},
@observes("args")