Re: [Proto-Scripty] Re: local variables for for() array iteration

2011-01-19 Thread RĂ¼diger Kaatz
Hmm, it' is the prototype way of doing it. I suppose it has to do with writing beautiful code, but that might be a matter of taste. Some like it and some don't :-) On Wed, Jan 19, 2011 at 11:59 PM, T.J. Crowder t...@crowdersoftware.com wrote: @RĂ¼diger: And last but not least, if this is a

Re: [Proto-Scripty] Re: local variables for for() array iteration

2011-01-19 Thread Ran Berenfeld
Thank you for the advise. one more / last question to clarify. In one of the articles about javascript scopes I read that using var inside a class constructor actually creates a private member of the class. is it true ? if this is true, then should I avoid using for (var i=0;iarr.length;i++) like