View Full Version : [FIXED] BUG: Adding Ext.Class from Toolbox -> controllers does not update UsrClassName
5 Sep 2012, 2:41 PM
So we decided to drop an Ext.Class into our project, under controllers. We changed the usrClassName -> Utils. But when we inspected the 'Application' node in the Project Inspectory, the reference to our new class was still st to 'MyClass' (which is the default name assigned when initially dropped)
5 Sep 2012, 4:01 PM
Hrm, there is definitely a bug here.
When adding a class to other nodes, views, stores and models, you will notice that they are not added to the references on Application. Controller should mirror this ability. In general I would only add these nodes under Application if they were a controller, model, store or view. Otherwise you will have to require them somewhere else (and instantiate them).
6 Sep 2012, 3:52 AM
Understood -- we were experimenting with new design patterns, and tried to follow the advice described on the page http://docs.sencha.com/architect/2/#!/guide/classes
In the section at the bottom 'Custom Classes':
"...A custom class can be added to the Controllers, Views, Stores, or Models Inspector nodes..."
Not a big deal -- just thought I'd give you a heads up about the docs.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.