flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik de Bruin <e...@ixsoftware.nl>
Subject [Falcon/FalconJX] object literal property != class property
Date Fri, 10 Oct 2014 15:50:44 GMT
Hi,

I have:

<code>
public class MyClass
{
private var myObject:Object = { visible: true };

private var _visible:Boolean;
 public function get visible():Boolean
{
return _visible;
}
 public function set visible(value:Boolean):void
{
_visible = value;
}
}
</code>

When I feed this to Falcon/FalconJX (with FlexJS output type set), I get
something weird for the ‘myObject’ line: somehow either Falcon or FalconJX
thinks the property ‘visible’ of the object literal is a reference to the
‘visible’ property of MyClass. It therefor parses the object literal to
“{this.get_visible():true}” instead of the “{visible:true}” I was expecting.

I tried stepping through the code, but I got completely lost in Falcon.

Am I doing/expecting something wrong, or is this actually an issue with the
compiler?

EdB



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

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