"Just when you think you're out... they pull you back in!"

I'm on it, expect to have solution this weekend.

EdB



On Fri, Apr 19, 2013 at 11:17 PM, Alex Harui <aha...@adobe.com> wrote:
> Erik,
>
> It looks like you took the ³var self=this² out.  How are you supposed to
> call local functions?  For example, this AS:
>
> Class A
> {
>     public var foo:String;
>     public function bar():String
>     {
>         return foobar();
>         function foobar():String
>         {
>             return foo;
>         }
>     }
> }
>
> Should the output JS use goog.bind to call foobar?  Is there ever a time
> when goog.bind is not used to call a local function?
>
> A.prototype.bar = function()
> {
>     return goog.bind(foobar, this)();
>     function foobar():String
>     {
>         return this.foo;
>     }
> }
> --
> 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

Reply via email to