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...
107
osteocosmosis
Jul 15, 2008 8:48 pm
Yes. Of course. Thanks....
106
Douglas Crockford
douglascrock...
Jul 15, 2008 5:14 pm
... Do not declare a name that is already declared. In this case, simply delete the word 'var'. padchar = ' ';...
105
osteocosmosis
Jul 15, 2008 5:11 pm
I 'redefine39; padchar in the following. Is there a workaround? Yes, I can copy it into another variable, but the code is actually okay as it is. ...
104
saj14saj
Jul 11, 2008 6:12 pm
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...
103
Klemen SlaviÄ
klemen.slavic
Jul 9, 2008 8:51 pm
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...
102
Thomas Koch
cluj_de
Jul 9, 2008 8:25 pm
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...
101
kevin_hakanson
Jul 9, 2008 4:21 pm
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...
... I have added a 'sub' option to JSLint. It turns off the check for suboptimal subscript notation....
98
Douglas Crockford
douglascrock...
Jul 2, 2008 6:35 pm
... It has been fixed. Thank you for report it....
97
Douglas Crockford
douglascrock...
Jul 2, 2008 5:18 pm
... Yes. ... JSLint has been around since 2001. But this group is a recent thing....
96
Andy Stevens
andystevens_...
Jul 2, 2008 5:16 pm
Hi, Would I be right in thinking the "download" version of jslint.js linked to on http://www.jslint.com/rhino/index.html is a concatenation of...
95
saj14saj
Jul 2, 2008 12:15 pm
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...
94
saj14saj
Jul 2, 2008 12:11 pm
The following code: <pre> function testEnvironment() { for (var i = 0; i < 10; i++) { (function (i) { console.log('Closure with i counting'); } (i)); } } ...
93
kevin_hakanson
Jun 30, 2008 5:50 pm
I probably will get flamed for using eval to set global variables, but I needed it at the time. Using eval in IE didn't work as I needed, so I had to use the...
92
kevin_hakanson
Jun 30, 2008 3:48 pm
... Between the time I posted this and you replied, I read "JavaScript: The Good Parts" and now that makes sense. I had never thought of using new...
91
Douglas Crockford
douglascrock...
Jun 30, 2008 1:15 am
... It was intentional. The Function constructor is a form of eval....
90
kevin_hakanson
Jun 30, 2008 1:12 am
I was looking through the fulljslint.js source and ran across the snippet below. Should the message say "... is evil"? Is this some sort of Freudian slip?...
89
Douglas Crockford
douglascrock...
Jun 25, 2008 7:48 pm
... the same as the web ... noticed (missing the ... The Rhino version at http://jslint.com/rhino/jslint.js uses the same core js file. You may want to fiddle...
88
Tim Breitkreutz
timbreitkreutz
Jun 25, 2008 7:44 pm
Hi, thanks for the great tool and book on Javascript! I was just wondering if the rhino version of the script is currently the same as the web version. It...
87
Douglas Crockford
douglascrock...
Jun 21, 2008 11:31 pm
... JSlint should now correctly identify fallthrough in nested switch statements. Thank you for the report....
84
Chris
altearius
Jun 21, 2008 9:05 pm
Hello, JSLint reports errors in switch statements caused by omitting a "break" statement. I recently encountered such an error that JSLint did not catch. It ...
83
Re Miya
remiya_ws
Jun 16, 2008 6:55 pm
... That really makes sense. Up to now I have been putting the private fns at the end like this var test = function(){ this.pub_function = function(){ ...
82
Douglas Crockford
douglascrock...
Jun 16, 2008 6:42 pm
... Move the definition of pvt_fn before the pub_function that uses it....
81
Re Miya
remiya_ws
Jun 16, 2008 6:30 pm
... Unless I ... This is what I have done. Use different names for the events. However I have stuck into another problem: var test = function(){ ...
80
Douglas Crockford
douglascrock...
Jun 16, 2008 5:20 pm
... There are scope definition problems with respect to catch in some browsers. I recommend that you give each catch its own name (e1, e2) to be safe....
79
wleingang
Jun 16, 2008 5:15 pm
... defined, the ... I had the same problem. I ended up replacing those namespace declarations in each individual file with /*global YAHOO*/ I agree that if...
78
Thomas Koch
cluj_de
Jun 16, 2008 4:44 pm
... Hi Will, I've another issue with already defined, which even appears in yui: if (typeof YAHOO == "undefined" || !YAHOO) { /** * The YAHOO global namespace...
77
wleingang
Jun 16, 2008 4:15 pm
Hi. Has anyone run into this before? try { this.var1 = "test"; }catch (e) {} try { this.var2 = "test"; }catch (e) {} On the second catch, JSLint thinks that e...