We currently have to load in the right order all files required.
"MyDependency1.js"
"MyDependency2.js"
"MyAction.js"
We should use the "require" mecanism of ExtJS to auto-load this.
The logic would be to set:
requires: "MyDependency2" in "MyAction.js"
and requires: "MyDependency1" in "MyDependency2.js"
And only load "MyAction.js".
Of course the purpose is not to let dynamic class system of ExtJS load the dependency, but on server side to analyse the requirements