flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Tynjala <joshtynj...@gmail.com>
Subject Re: [FlexJS] value.hasOwnProperty not working, maybe a bug
Date Tue, 10 Jan 2017 20:12:45 GMT
It seems like they're basically the same in Flash, so yes, I think that
would be fine. If we discover a big enough difference in the future, we can
consider a new method on the Language class instead.

- Josh

On Jan 10, 2017 11:07 AM, "Alex Harui" <aharui@adobe.com> wrote:

> On 1/10/17, 10:42 AM, "Josh Tynjala" <joshtynjala@gmail.com> wrote:
>
> >I don't know about Carlos, but I use hasOwnProperty() in ActionScript to
> >see if a property exists at all. It's never made a difference to me
> >whether
> >it's been added dynamically to an object or if it was defined as a member
> >of a class. I only care whether it's there or not.
>
> Hmm. If the compiler re-coded hasOwnProperty to "in" calls, would that be
> a solution?
>
> -Alex
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message