In my code, I have a class with a method defined like this:
Ext.define('MY.class.Manager', {
....
....
....
manageStuff: function(){
}
}
Initially, the manageStuff
function was only needed in one place and everything worked fine. But now, I've added another class where I need to call the manageStuff
function from within it.
I attempted to obtain a reference in the new class:
var ManagerClass = Ext.getClass('MY.class.Manager');
As well as:
var ManagerClass = Ext.getClass('class.Manager');
However, both of these attempts returned null
.
To confirm that the Manager Class is being defined before attempting to retrieve it, I inserted print statements:
These statements showed:
...making manager class
...getting manager class
I am seeking assistance because I believe my approach to this issue may be incorrect from the start.