On Jan 23, 5:43 am, Andrew Dupont <[EMAIL PROTECTED]> wrote:
> On Jan 22, 12:49 pm, Randy <[EMAIL PROTECTED]> wrote:
>
> > Am I correct in thinking that this is a no-op? Seems to me that
> > Object.keys({ toString: true}) will always return [ toString].
>
> Not in IE. The "toString" property is never enumerated, even when it's
> specified by the user. Yes, this is a bug.
The result of the above is that in IE, the toString and valueOf
methods of the object passed to the addMethods function will be added
to the "Class", even if they aren't enumerable. That may have
unexpected results (in IE).
--
Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---