On 10/10/2012 19:33, Dimitar Christoff wrote:
>
> On Wednesday, October 10, 2012, Lee Goddard wrote:
>
> Thanks, Olivier,
>
> I understand, though I'm not happy about what's going on!
>
> Lee
>
> this is because elements is on the prototype. you have 2 patterns
> here.
>
> one. Object.keys(Object.clone(this.elements))
>
> two. don't add this to the proto but instance
Yes, thanks Dimitar. I realise that. I'm probably the only one who'd
want to know what fields my object has, so I'll not suggest a patch!
Cheers
Lee