In jQuery there is the following code when throwing error in an Ajax call: function (XMLHttpRequest, textStatus, errorThrown) { // typically only one of...
44
Douglas Crockford
douglascrock...
May 20, 2008 10:03 pm
Clearly that code is bad. How you fix it depends on what it is supposed to do. If you delete the line containing this; it will behave as it does now....
45
Re Miya
remiya_ws
May 21, 2008 4:28 am
I do not know what *this;* is intended to do. But because this is placed in the jQuery website official documentation for Ajax, I thought it might be some kind...
46
Jakob Kruse
thekrucible
May 22, 2008 10:55 am
Hi I would like to request for the indent level used/checked by jslint, when the whitespace option is turned on, to be made configurable, as an option. Reason:...
47
Thomas Koch
cluj_de
May 22, 2008 1:44 pm
Hi, I started today to explore jslint. My first problem was, to figure out, which jslint I actually need/want. There's jslint from Douglas Crockford which I've...
48
mflanagan_swim
May 22, 2008 2:01 pm
I agree! I also modified the existing jslint, but I added an edit box so I could specify the value (so no hard-coding). But Douglas does such a good job of...
49
Douglas Crockford
douglascrock...
May 23, 2008 2:56 am
JSLint now accepts an indent parameter that allows setting the number of spaces of indentation when checking strict whitespace. The default is 4. It can be...
50
Jakob Kruse
thekrucible
May 23, 2008 5:49 am
... Great news. Thank you Douglas! /Jakob...
53
Kai
kaichen67
May 24, 2008 5:39 pm
Hello! A few -more or less- philosophical questions regarding strict whitespace option: A) Comment: JSLint doesn't like comments within function arg...
54
Douglas Crockford
douglascrock...
May 24, 2008 9:02 pm
... Fixed. Thanks. ... To be clear, an anonymous function is a function without a name, not a function named function....
56
Douglas Crockford
douglascrock...
May 27, 2008 11:53 pm
JSLint now accepts the "use strict" declaration. This is in anticipation of the next edition of ECMAScript. Strict mode will reject many problematic features...
57
Merlin
harry152566
May 28, 2008 10:57 am
JSLint does not handle tabs correctly. Mostly, this does not matter, but it does matter when checking indentation. Some text editors allow tab-stops to be...
58
Jakob Kruse
thekrucible
May 28, 2008 11:06 am
I think it would be simpler, and probably better, if jslint could "enforce" (check that is) and either-or policy: either indentation is performed using spaces...
59
Merlin
harry152566
May 28, 2008 7:22 pm
It is a good idea when offering code to get it right! Here is a corrected version of my recent post. function detab(data, tabspace) { var i, c, col = 0, out =...
60
Merlin
harry152566
May 28, 2008 8:10 pm
... Tabs are not just bad , they are awful. They have been a source of trouble from the early days of computers. Unless you know where the tab-stops were...
61
Douglas Crockford
douglascrock...
May 29, 2008 1:58 pm
Tabs are problematic largely due to a lack of standardization. They are unnecessary, but still in significant use. JSLint now treats a tab as equivalent to the...
62
ps_praveenkr
May 30, 2008 6:27 pm
Hi, function myFunc() { var v1 = { option: true }; var v2 = v1.option = false; }; JSLint throws the following error messages for the above code snippet: Error:...
63
Douglas Crockford
douglascrock...
May 30, 2008 6:32 pm
... 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: ...