The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Lee Goddard <lee...@gmail.com>
Date: Wed, 10 Oct 2012 16:52:18 +0200
Local: Wed, Oct 10 2012 10:52 am
Subject: Re: Object.keys
Thanks, Olivier,
I understand, though I'm not happy about what's going on!
Lee
On 10/10/2012 16:44, Oliv wrote:
> Hi,
>
> In the Object.keys function, it is using the hasOwnProperty function > as a test before returning keys, and it will return false if the key > comes from an inherited (ie prototype) property. > > During the mootools Class object creation, the object passed in > parameter is merged in the prototype of the object Class, so you > can't get the keys with Object.keys(). > > > I hope to be understandable, cheers, Olivier Gasc > > Le mercredi 10 octobre 2012 14:50:55 UTC+2, Lee a écrit : > > I'm sure I'm doing something daft, but why doesn't > Object.keys(this.obj) work? > > http://jsfiddle.net/leegee/cvrvK/4/ > <http://jsfiddle.net/leegee/cvrvK/4/> > > Thanks... > > Lee > You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||