View Full Version : What about supporting 'controllers' property in controller itself?

30 Sep 2011, 6:12 AM
What about adding 'controller' to the modules-array in order to require a controller to be loaded?

What I want to do is:

Ext.define("App.controller.TestController", {
controllers : [

You have to specify the "NestedController" via requires to get it loaded as a single script file.
If you specify it via the controllers-property, it gets loaded in anonymous code which is not so nice.

So that the controllers get loaded like "views" or "models" that are defined in the controller, I added the "controller" entry to look for additional requires (line 21308 in ext-all-debug.js, v4.0.2a).

Is that ok?