PDA

View Full Version : [FIXED] 2.0.0.000311 - launch in controller



andyboxer
13 Mar 2012, 4:44 AM
What is the purpose of having 'launch' menuitem in dropdown when viewing controller code because if I write there code it is not executed and I should add Basic Function with the name 'onLaunch' to run my code.
Also when I add 'onLaunch' function to controller I get red exclamation mark to the right of the function in project inspector saying: 'This function is overriding a member', but here (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.app.Controller-method-onLaunch) is it said that 'Feel free to override it in child classes'.

aconran
13 Mar 2012, 11:12 AM
The code in your launch method should be executed.

andyboxer
14 Mar 2012, 1:56 AM
You can easily recreate the issue: start new Ext JS 4 project, define settings, dragndrop controller, switch to code, select launch from dropdown, write console.log('MyController launch'), save, deploy and run in browser: I have no message in firebug...

aconran
3 Apr 2012, 4:52 PM
Sencha Touch and Ext JS will now show the appropriate launch or onLaunch method to be added on the Controller.