incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Wienberg <>
Subject Re: [FalconJx::GoogEmmitter] Moving forward
Date Thu, 27 Dec 2012 12:25:54 GMT
On Thu, Dec 27, 2012 at 11:56 AM, Michael Schmalle

> Also did a trick to allow a hook into the beginning of a function block to
> inject code. We can do that anywhere it's needed, I don't see a lot of
> situations like that though.

There is something quite similar in Jangaroo's JSCodeGenerator: you can
inject any CodeGenerator into a function, making it generate code at the
beginning of its body.
Another situation where I needed that was an aliased "this" reference (var
$this=this;) to be able to access it in inner anonymous functions. If it is
needed multiple times (i.e. by several anonymous functions), the alias
assignment is still generated only once.

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