Hello qooxdoo list,

I've created an object by extending the qx.ui.groupbox.GroupBox widget. 
This object is a container of several variables (to be input from the users)
and on one page I have more than one instance of this object.
The variables are either TextFields, arrays of TextFields or SelectBoxes.
I created a dynamically filled array which contains all the variables held
within the object (for ease of access of all the variables). This array I
called __variables (two underlines) and always accessed it using
this.__variables.

My problem is the following - after creating several of these groupbox
objects, it seems that the this.__variables array contains all the
variables, from all the instances of the object! 
If at the constructor I set this.__variables = [], and use
console.log(this.__variables) to follow the evolution of the array, after
every instance is created the variables array holds only the correct
variables, but then still all the instances just hold the variables of the
last created groupbox object.

Is this a bug? Am I missing something about extending objects? 

Thanks, any kind of help would be greatly appreciated! I am baffled!

Omri
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/private-variable-being-shared-between-instances-tp6056707p6056707.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to