Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18934

Re: Defining two functions in a loop referring to variables scoped in the loop behave as their were global variables

From Cezary Tomczyk <cezary.tomczyk@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Defining two functions in a loop referring to variables scoped in the loop behave as their were global variables
Date 2013-03-18 17:44 +0100
Organization Aioe.org NNTP Server
Message-ID <ki7g9a$c9a$1@speranza.aioe.org> (permalink)
References <3e54afae-ea56-43c0-95d8-e6a173d8c1a6@googlegroups.com>

Show all headers | View raw


W dniu 2013-03-18 13:29, pwellner@gmail.com pisze:
[...]

> I create the same example here:
>
> http://jsfiddle.net/LFr4U/3/

My updated version:
http://jsfiddle.net/LFr4U/6/

-- 
Cezary Tomczyk
http://www.ctomczyk.pl/

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Defining two functions in a loop referring to variables scoped in the loop behave as their were global variables pwellner@gmail.com - 2013-03-18 05:29 -0700
  Re: Defining two functions in a loop referring to variables scoped in the loop behave as their were global variables Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2013-03-18 17:44 +0100
  Re: Defining two functions in a loop referring to variables scoped in the loop behave as their were global variables Gregor Kofler <usenet@gregorkofler.com> - 2013-03-18 18:04 +0100
  Re: Defining two functions in a loop referring to variables scoped in the loop behave as their were global variables Jim T. <x@y.z> - 2013-03-19 12:01 -0500
    Re: Defining two functions in a loop referring to variables scoped in the loop behave as their were global variables Jim T. <x@y.z> - 2013-03-19 12:25 -0500

csiph-web