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
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
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.
---
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