PDA

View Full Version : Extending the Ext.Loader



Dumas
13 Jun 2013, 11:54 AM
Hallo,

is there any possibility to extend the default Ext.Loader. If I would have for example multiple classes in one javascript file it would be nice to configure the Ext.Loader to handle this.

I would normally simple build a child of the Ext.Loader, but since it is so hardly tied into all other features I guess I would have to override some private methods here?

Thanks for any tips or ideas
Roland

slemmon
17 Jun 2013, 11:56 AM
The recommended approach for developing is one class per file. Then after a build or compilation is done all files will be in one file.

Dumas
9 Jul 2013, 12:08 PM
Thanks for the answer. Sorry, that I reduced the problem to a senseless one.


My actual problem was more complex, I have a custom class loader to load server-side configured models. Here some information and the code:
http://banchaproject.org/blog-entry/items/building-a-customer-class-loader-for-sencha.html


Thanks,
Roland