Looks like we can't reproduce the issue or there's a problem in the test case provided.
-
Sencha User
ExtJS 4.1 | Twice Ext.define - doesn't throw any exception
Hello,
It'll be very nice if ExtJS will throw any exception when we try to double define some component.
FE:
Ext.define('myApp.view.user.Menu' ,{ /* some code */ });
file with the upper definition should be in: app/view/user/Menu.js
coppy upper definiotion, paste to file in: app/view/group/Menu.js
then forget to change user to group in definition, and you will nothing see, just blank page, without any errors in console.
Regards.
-
I think this is more of application coding style issue. Your class name should exactly be the same as your file structure so this wouldn't happen anyway.