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.

- Josh

On Tue, Jan 10, 2017 at 10:23 AM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/10/17, 10:10 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
> <carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com>
> wrote:
>
> >Hi Alex, Josh,
> >
> >as we MXML/AS3 is our domain, I think we should "unify" how it behaves.
> >That's the best way and the more coherent I can think...
>
> Another option is to have the compiler generate a warning or error if you
> use hasOwnProperty.  Do you only use hasOwnProperty to try to see if a
> property changed?  If so, I think it just won't work when you start using
> Object.defineProperty and I'm not sure how we'd be able to "unify" it.
> How would we know what the backing variable is for a property?
>
> Thoughts?
> -Alex
>
>

Reply via email to