hi all,

i'm running into a strange javascript issue (probably namespace) which i don't understand. i have the following:

Code:
// this is a singleton
var myNameSpace.Module10.SubModule5=function(){
return{

  this.win=Ext.Window(
    ...
    region:'north'
    items:[this.cmp1=new myNameSpace.Module10.SubModule5.Component_1()]
   ....
    region:'south'
    items:[this.cmp2=new myNameSpace.Module10.SubModule5.Component_22()]
  )
}}();

// components

myNameSpace.Module10.SubModule5.Component_1 = Ext.extend(Ext.grid.GridPanel,{...

myNameSpace.Module10.SubModule5.Component_22 = Ext.extend(Ext.FormPanel,{...
    ...
    items:[
        this.cbo1=new Ext.form.ComboBox({...})
        this.cbo2=new Ext.form.ComboBox({...})
    ]
the code runs fine for the first time. after which it craps out on

Code:
myNameSpace.Module10.SubModule5.Component_22 is not a constructor.
i realized that by removing the comboboxex removes the error but that doesn't solve the problem.

i finally renamed:

myNameSpace.Module10.SubModule5.Component_22

to

myNameSpace.Module10.SubModule5___Component_22

and it worked fine. it took me 1/2 a day to figure that out but i still dont understand what the problem is. can anyone help clarifying?

thanks!