Re: Why is this a closure?
- From: Jake Jarvis <pig_in_shoes@xxxxxxxxx>
- Date: Sun, 12 Feb 2012 14:10:59 +0100
On 12.02.2012 13:07, Tom de Neef wrote:
When I run the code below through JSLint, the report says:<snip>
Global test
1 test()
Closure compare
...
I thought I had understood the concept of closure:
From JSLint's manual
http://www.jslint.com/lint.html#report
| Report
|
| If JSLint is able to complete its scan, it generates a function
| report. It lists for each function:
| ...
| /Closure/: The variables and parameters that are declared in the
| function that are used by its inner functions.
--
Jake Jarvis
.
- Follow-Ups:
- Re: Why is this a closure?
- From: Tom de Neef
- Re: Why is this a closure?
- From: Jake Jarvis
- Re: Why is this a closure?
- References:
- Why is this a closure?
- From: Tom de Neef
- Why is this a closure?
- Prev by Date: Limited time offer, so hurry up!
- Next by Date: Re: Why is this a closure?
- Previous by thread: Why is this a closure?
- Next by thread: Re: Why is this a closure?
- Index(es):