Re: [qooxdoo-devel] Error: forbiden name in constructor expression

2013-04-11 Thread fprijate
Hi This kind of assignement doesn't work : var xx= new xx.MyClass() ; // variable name 'xx' matches the first part of namespace This works OK : var xx1= new xx.MyClass(); // OK xx1.addListener(...) // but after var xx=''; // doesn't work anymore // So : Variables can't have name matching t

Re: [qooxdoo-devel] Error: forbiden name in constructor expression

2013-04-11 Thread John Spackman
That's normal Javascript; variable "hoisting" means that the variable xx is local to the method or block, and the new xx variable does not have a member called MyClass John On 11/04/2013 08:18, "fprijate" wrote: >Hi > >This kind of assignement doesn't work : > >var xx= new xx.MyClass() ; // v

Re: [qooxdoo-devel] Error: forbiden name in constructor expression

2013-04-11 Thread fprijate
Hi Sorry It's a feature of JavaScript. regards Franček -- View this message in context: http://qooxdoo.678.n2.nabble.com/Error-forbiden-name-in-constructor-expression-tp7583211p7583213.html Sent from the qooxdoo mailing list archive at Nabble.com. ---

[qooxdoo-devel] Error: forbiden name in constructor expression

2013-04-11 Thread fprijate
Hi This kind of assignement doesn't work : var xx= new xx.MyClass() ; // variable name 'xx' matches the first part of namespace This works OK : var xx1= new xx.MyClass(); // OK regards Franček -- View this message in context: http://qooxdoo.678.n2.nabble.com/Error-forbiden-name-in-const