You need to sign in to do that
Don't have an account?
Nicolas Vuillamy
component.getConcreteComponent().getDef().getHelper() alternative ?
Hi,
In my lightning app I use a lot component inheritance.
Basically, i have a 'framework' component that contains most of the behaviours, and the only specific behaviours are defined on inheriting component.
Since LockerServer, the command component.getConcreteComponent().getDef().getHelper() doesn't work anymore, coz getDef() is not accessible.
What is the workaround to do that ?
Note: my code follows the principle of this example : https://developer.salesforce.com/blogs/developer-relations/2015/03/salesforce-lightning-components-by-example-component-extension.html
Many thanks & best regards
In my lightning app I use a lot component inheritance.
Basically, i have a 'framework' component that contains most of the behaviours, and the only specific behaviours are defined on inheriting component.
Since LockerServer, the command component.getConcreteComponent().getDef().getHelper() doesn't work anymore, coz getDef() is not accessible.
What is the workaround to do that ?
Note: my code follows the principle of this example : https://developer.salesforce.com/blogs/developer-relations/2015/03/salesforce-lightning-components-by-example-component-extension.html
Many thanks & best regards
I found a workaround, i'm not sure it's the best one, and i'd really prefer SalesForce to provide a native way in Lightning to manage it ..... but it works with LockerService :)
Please check my answer on stackexchange: http://salesforce.stackexchange.com/questions/118270/lightning-lockerservice-and-component-inheritance