var Ex = new Class({ thing: something });

This will make `thing` be a property of Ex.prototype. So any instance of Ex
will not actually have the property `thing`, but that property will still be
available in a for..in loop. It's just that (new
Ex()).hasOwnProperty('thing') will return false.



On Wed, Jul 6, 2011 at 9:05 PM, Jonathan Bomgardner <[email protected]>wrote:

> That much i understand. The puzzling part is that these properties are
> directly on the object (at least that's the way I had intended them to be).
> Could something in the Class initialization have moved them down the
> prototype chain? I'm not entirely versed in how Class does that voodoo that
> it does so well....
>
> in any case, I guess I can just change this to create the array myself
> using your first bit of code. Kinda seems like a hacky way to do it when we
> have Object.values().... just wished it did what I thought it should.
>
> Thanks,
> Jon
>

Reply via email to