... You are using an assignment expression in a confusing context. Wrap it in parens to show that you are doing it intentionally. function myFunc() { var v1 =...
64
ps_praveenkr
May 30, 2008 7:04 pm
I tried that but now I get: Error: Problem at line 3 character 10: Parens are not needed here. var v2 = (v1.option = false); I can ignore this message but my...
65
Douglas Crockford
douglascrock...
May 30, 2008 8:09 pm
... JSLint was in error. Please try it now....
66
ps_praveenkr
May 30, 2008 8:56 pm
... That works. Thanks!...
67
Douglas Crockford
douglascrock...
Jun 1, 2008 6:22 am
The function report now includes urls that are found in html files....
68
Douglas Crockford
douglascrock...
Jun 3, 2008 11:51 pm
JSLint's HTML analyzer now reports duplicate ids....
69
Re Miya
remiya_ws
Jun 4, 2008 1:22 am
... This is a MUST feature. Thank you....
70
Douglas Crockford
douglascrock...
Jun 4, 2008 8:17 pm
JSLint now allows statements to be broken before a ....
71
Alan Green
alanggreen
Jun 5, 2008 5:54 am
I can't figure out how to set the options from the command line when using the WSH Command Line version. Thanks Alan...
72
Douglas Crockford
douglascrock...
Jun 5, 2008 1:35 pm
If you look at wsh.js, you'll see if (!JSLINT(WScript.StdIn.ReadAll(), {passfail: true})) { The second argument to JSLINT is the options object....
73
Arthur Blake
blakesys
Jun 6, 2008 2:07 pm
I love JSLint! A few ideas... Would be nice if the "Implied global" error message was in a format that I could cut it and paste it right into the top of my .js...
74
wleingang
Jun 10, 2008 12:14 am
Use this wsh wrapper to pass in arguments from the command line. The argument needs to be a single json object with no spaces. See the example below the code: ...
75
Kai Hendry
dadraqsta
Jun 10, 2008 1:07 pm
http://svn.natalian.org/projects/html5/javascript.vim Any comments? Source code is linked from there. Some more Web dev IDE tips here: ...
76
Thomas Koch
cluj_de
Jun 10, 2008 2:46 pm
... This is how I integrate JSLint into VIM using spidermonkey on Debian: function! RunJslint() let l:input=join(getbufline(bufnr('%'),1,'$'),"92;n") cd...
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...
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...
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...
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....
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(){ ...
82
Douglas Crockford
douglascrock...
Jun 16, 2008 6:42 pm
... Move the definition of pvt_fn before the pub_function that uses 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(){ ...
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 ...
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....
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...
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...
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?...
91
Douglas Crockford
douglascrock...
Jun 30, 2008 1:15 am
... It was intentional. The Function constructor is a form of eval....
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...
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...
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)); } } ...