Guys,
I've got this singleton class that I'm using as a global object. I'm running into an issue, however, when I try to call the constructor, the config comes in as undefined.
Thoughts?
Code:
Ext.define('Resource.global.Config',{
extend:'Ext.Class',
singleton:true,
config:{
file_subtype:[],
site_url:'',
file_type:[],
file_type_all:[],
checkFileUploadSize:'',
max_file_size:750,
is_external:true,
is_company_share_holder:false,
is_company_manager:false,
clientid:0,
client:{},
ajax_path:'/ajax/',
ajax_interface_gather:'ajax_interface_gather.cfm',
ajax_interface_post:"ajax_interface_post.cfm",
comm_menu:[],
comm_category:[],
state:'',
states:'',
weight_unit:[],
height_unit:[],
resource_conditions:'',
pos_resource:false,
company_tile:'',
military_service:'',
education_level:'',
system_configuration_setting:'',
image_upload_url:'',
resources_import:[]
},
constructor: function(config) {
this.initConfig(config);
return this;
}
});