The following code: <pre> function testEnvironment() { for (var i = 0; i < 10; i++) { (function (i) { console.log('Closure with i counting'); } (i)); } } ...
I understand and agree with the warning about dot notation in general. My use case for requesting a configuration option to disable it is this: I am parsing an...
First, thanks for making updates to JSLint based on this groups comments. It's easiest just to quote another source for this request: "The escape and unescape...
Hi, can somebody recommend me some small pieces of javascript code, that I can study to improve my coding style? I already study YUI, but it is to large to...
Hello, While I don't think there's a "one paradigm to rule them all," I can testify to the elegant extension methods that jQuery employs in its plugin...
Thank you, that is wonderful. I really appreciate the tool, which I use frequently, because I think it saves me lots of time debugging, and I also appreciate...
I use the snippet I attached below to integrate JSLint and SciTE editor. Is it possible to get a text report (and not a html report), because I wouldn't...
Hello. I was wondering if it's possible to catch the error described by the snippet. I am referring not to catch the out of bound, but the lack of the...
In 3000 lines of JS code, I'm completely clean according to JSLint, except for five messages like this: "Be careful when making functions within a loop....
... It is generally a bad idea to define a function in a loop. If the function refers to a variable that changes in the loop, then it will bind to the final...
var arr = []; for(var i, b; b=arr[i] ; i++){ } //---------- according to : http://userjs.org/help/tutorials/efficient-code#fastloops its fully legit to make an...
doit(); function doit(){ } //----- In ANSI-C its crusial that functions are defined before they are used - either 'physically' or by a shadow in the...
... The code is faulty because it can enumerate inherited methods as well as data values. This is known to cause programs to fail. You can control this with...
... You should write either for(var i, b; b == arr[i] ; i++){ or for(var i, b; (b = arr[i]); i++){ The way you have written it looks like a probable error....
... I've always assumed the headaches it saves are extended look-ups of the function that wastes time. Is this right? Or does it combat namespace pollution?...