Ext.app.Controller bug in getModuleClassName ?
I'm not sure but I think there is a bug in getModuleClassName. this.name should be namespace.
Code:
getModuleClassName: function(name, type) {
var namespace = Ext.Loader.getPrefix(name);
if (namespace.length > 0 && namespace !== name) {
return name;
}
return this.name + '.' + type + '.' + name; // IS THIS A BUG?
// Shouldn't it be: return namespace +'.' + type + '.' + name;
},
Now same thing in Ext.app.Application [PR3]
Looking at this in PR3, getModuleClassName() is no longer in Ext.app.Controller, but has been moved to Ext.app.Application. But has exact same definition as what was classified here as a bug.
Code:
getModuleClassName: function(name, type) {
var namespace = Ext.Loader.getPrefix( name );
if (namespace.length > 0 && namespace !== name) {
return name;
}
return this.name + '.' + type + '.' + name;
}
Other thing that looks fishy is that Ext.app.Controller appears to be aliased to Ext.Application. Beginning of Ext.app.Controller is as follows:
Code:
Ext.define( 'Ext.app.Controller', {
alternateClassName: 'Ext.Application'
Perhaps some hasty "cut-n-paste" refactoring??