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:
parent
73c776d881
commit
5cb99d08ed
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue