baushaug
6 Apr 2012, 9:29 AM
I attempting to create a global or application specific array with in my launch:function().
launch: function() {
BrookshireBrothersMobile.globals = {
enduser: '',
dummy: 35
};
Ext.create('BrookshireBrothersMobile.view.Main', {fullscreen: true});
}
Although when I attempt to retrieve either one of these variables within a Controller Action, I get this Reference Error
ReferenceError
arguments: Array[1]
0: "enduser"
length: 1
__proto__: Array[0]
get message: function getter() { [native code] }
get stack: function getter() { [native code] }
set message: function setter() { [native code] }
set stack: function setter() { [native code] }
type: "not_defined"
__proto__: Error
Also what is the proper way to declare an application specific or global array in the launch function?
Are there any examples of this in the sample code ?
launch: function() {
BrookshireBrothersMobile.globals = {
enduser: '',
dummy: 35
};
Ext.create('BrookshireBrothersMobile.view.Main', {fullscreen: true});
}
Although when I attempt to retrieve either one of these variables within a Controller Action, I get this Reference Error
ReferenceError
arguments: Array[1]
0: "enduser"
length: 1
__proto__: Array[0]
get message: function getter() { [native code] }
get stack: function getter() { [native code] }
set message: function setter() { [native code] }
set stack: function setter() { [native code] }
type: "not_defined"
__proto__: Error
Also what is the proper way to declare an application specific or global array in the launch function?
Are there any examples of this in the sample code ?