flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Rovira <carlos.rov...@codeoscopic.com>
Subject Re: [FlexJS] value.hasOwnProperty not working, maybe a bug
Date Wed, 11 Jan 2017 11:20:21 GMT
Hi Josh, yes I use in the same way as you.
For example, in the item renderer that caused the bug I check if some
properties exists, although in my example I use a VO o DTO, people could be
using a plain Object , for that reason I wouldn't force to that VO (that is
part of the example)

2017-01-10 19:42 GMT+01:00 Josh Tynjala <joshtynjala@gmail.com>:

> 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 <aharui@adobe.com> wrote:
>
> >
> >
> > On 1/10/17, 10:10 AM, "carlos.rovira@gmail.com on behalf of Carlos
> Rovira"
> > <carlos.rovira@gmail.com on behalf of carlos.rovira@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
> >
> >
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

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