Re: [qooxdoo-devel] Understanding Class Members Question

2012-01-26 Thread Simon White
In regards to properties the items you gain are well worthwhile. My initial mistake was forgetting about arrays being by reference and thinking I would have to initialize all the members. Thanks, Simon On 26/01/2012 9:56 AM, Derrell Lipman wrote: > On Thu, Jan 26, 2012 at 09:47, Simon White >

Re: [qooxdoo-devel] Understanding Class Members Question

2012-01-26 Thread Derrell Lipman
On Thu, Jan 26, 2012 at 10:22, Simon White wrote: > Thank-you that certainly makes sense as I forgot that arrays are by > reference. > > However that does not explain the other missing items that I listed in > my initial post. Yeah, that's unrelated to this issue, I think. Someone with more know

Re: [qooxdoo-devel] Understanding Class Members Question

2012-01-26 Thread Simon White
Thank-you that certainly makes sense as I forgot that arrays are by reference. However that does not explain the other missing items that I listed in my initial post. Simon On 26/01/2012 9:56 AM, Derrell Lipman wrote: > On Thu, Jan 26, 2012 at 09:47, Simon White >

Re: [qooxdoo-devel] Understanding Class Members Question

2012-01-26 Thread Derrell Lipman
On Thu, Jan 26, 2012 at 09:47, Simon White wrote: > Hi > > I think the part that does not make sense is that when I create and new > object I assumed that it would get its own copy of all the members of > the prototype. I did not expect it to look up the inheritance chain and > find the property

Re: [qooxdoo-devel] Understanding Class Members Question

2012-01-26 Thread Simon White
Hi I think the part that does not make sense is that when I create and new object I assumed that it would get its own copy of all the members of the prototype. I did not expect it to look up the inheritance chain and find the property on the prototype. What I means if I had a property call "m

Re: [qooxdoo-devel] Understanding Class Members Question

2012-01-26 Thread John Spackman
In javascript, an object's prototype is how class inheritance is implemented; the short explanation is that properties which appear as properties of the object belong to the object, but those in the prototype belong to the class and are common to all instances of that class. The long explanation i

[qooxdoo-devel] Understanding Class Members Question

2012-01-25 Thread Simon White
Hi When I use the Chrome Debugger and look at the my JSON store object I notice that not all the members I defined in my class are listed on the store. If I look at the "__proto__" object everything is there. The members of my store are defined as: members: { __array : [], __changedI