You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Alex Harui <ah...@adobe.com> on 2013/04/08 09:01:30 UTC
[FalconJX] What is the purpose of emitBinaryOperator override in
JSFlexJSEmitter?
What does it do that the superclass doesn’t handle?
Thanks,
--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui
Re: [FalconJX] What is the purpose of emitBinaryOperator override in JSFlexJSEmitter?
Posted by Erik de Bruin <er...@ixsoftware.nl>.
It helps with the proper handling of getter/setter properties. FlexJS
uses methods with the "get_" and "set_" prefixes instead of the
"Object.defineProperty" that "goog" JS uses. When using a setter
method you go from "myObject.label = 'hello world'" to
"myObject.set_label('hello world')". Part of that translation is a
manipulation of the assignment, where we want to leave out the right
side of the equation when dealing with an
AccessorDefinition.
EdB
On Mon, Apr 8, 2013 at 2:01 AM, Alex Harui <ah...@adobe.com> wrote:
> What does it do that the superclass doesn’t handle?
>
> Thanks,
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
--
Ix Multimedia Software
Jan Luykenstraat 27
3521 VB Utrecht
T. 06-51952295
I. www.ixsoftware.nl