i have something like
Ext.define('HS.controller.Utility', {
statics : {
state : 'Oklahoma'
}
});
Now i want to access it from my controllers, but in every method of controller, i have to write HS.controller.Utility.state
to access it. currently i'm doing this : var ut = HS.controller.Utility
and then accessing state
as ut.state
, but again, i've to declare this variable in every function. Is there a way to set it to a short name once in my controller and then access from all functions?