develooper Front page | perl.javascript | Postings from November 2006

Re: JS closures lose context

Thread Previous
From:
Andy Armstrong
Date:
November 4, 2006 12:46
Subject:
Re: JS closures lose context
Message ID:
D50285D8-9858-4558-9A62-3504B27C7659@hexten.net
On 4 Nov 2006, at 20:40, Andy Armstrong wrote:
> It looks as if the context that should be captured (closed over) by  
> the returned JS function is being lost. Is this expected behaviour?

Oh and the 'return 1' in js_next was just me playing to find out  
exactly what was being lost - but it doesn't affect the observed  
behaviour.

-- 
Andy Armstrong, hexten.net


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About