CarClub
14 May 2012, 1:17 PM
As usual, documentation is silent about how to reference the application from within a controller, despite showing sample code (http://docs.sencha.com/touch/2-0/#!/guide/apps_intro) like:
doLogin: function() { var form = this.getLoginForm(), values = form.getValues(); MyApp.authenticate(values); }
there is nothing bound do MyApp - it is undefined.
doLogin: function() { var form = this.getLoginForm(), values = form.getValues(); MyApp.authenticate(values); }
there is nothing bound do MyApp - it is undefined.