Search the web
Sign In
New User? Sign Up
jslint_com · JSLint.com
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 35 - 67 of 112   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
35
JSLint will now providing a warning for code like this: function foo(a) { var i; for (i = 0; i < a.length; i += 1) { a[i].onclick = function (e) { alert(i); };...
Douglas Crockford
douglascrock...
Offline Send Email
May 6, 2008
9:10 pm
36
When constructing a singleton in JS using an anonymous constructor, JSlint returns a "Weird construction" error. Here's the code: /*globals A*/ A = new...
klemen.slavic
Offline Send Email
May 7, 2008
9:50 pm
37
Hi Although this is really a javascript (not jslint) issue, could you explain why one should make the function valus in a closure. Thanks Alan ... make...
Alan Green
alanggreen
Offline Send Email
May 11, 2008
4:12 am
38
... Drop the unnecessary new operator, then it will be correct....
Douglas Crockford
douglascrock...
Offline Send Email
May 11, 2008
1:07 pm
39
... The common failure case was shown in the example, attaching event handlers in a loop. If the event handlers are bound to variables that are mutated by the...
Douglas Crockford
douglascrock...
Offline Send Email
May 11, 2008
1:10 pm
40
When immediately invoking a function literal, parens must wrap the expression when it is used in the statement position because of an ambiguity in the grammar...
Douglas Crockford
douglascrock...
Offline Send Email
May 12, 2008
4:54 pm
41
JSLint now issues a warning if it sees the close script tag in a comment....
Douglas Crockford
douglascrock...
Offline Send Email
May 16, 2008
3:49 pm
42
I added the JSON object to the list of objects that are provided by the standard, in anticipation of the next edition of the ECMAScript standard....
Douglas Crockford
douglascrock...
Offline Send Email
May 19, 2008
3:58 pm
43
In jQuery there is the following code when throwing error in an Ajax call: function (XMLHttpRequest, textStatus, errorThrown) { // typically only one of...
Re Miya
remiya_ws
Offline Send Email
May 20, 2008
8:31 pm
44
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....
Douglas Crockford
douglascrock...
Offline Send Email
May 20, 2008
10:03 pm
45
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...
Re Miya
remiya_ws
Offline Send Email
May 21, 2008
4:28 am
46
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:...
Jakob Kruse
thekrucible
Offline Send Email
May 22, 2008
10:55 am
47
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...
Thomas Koch
cluj_de
Offline Send Email
May 22, 2008
1:44 pm
48
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...
mflanagan_swim
Offline Send Email
May 22, 2008
2:01 pm
49
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...
Douglas Crockford
douglascrock...
Offline Send Email
May 23, 2008
2:56 am
50
... Great news. Thank you Douglas! /Jakob...
Jakob Kruse
thekrucible
Offline Send Email
May 23, 2008
5:49 am
53
Hello! A few -more or less- philosophical questions regarding strict whitespace option: A)  Comment: JSLint doesn't like comments within function arg...
Kai
kaichen67
Offline Send Email
May 24, 2008
5:39 pm
54
... Fixed. Thanks. ... To be clear, an anonymous function is a function without a name, not a function named function....
Douglas Crockford
douglascrock...
Offline Send Email
May 24, 2008
9:02 pm
56
JSLint now accepts the "use strict" declaration. This is in anticipation of the next edition of ECMAScript. Strict mode will reject many problematic features...
Douglas Crockford
douglascrock...
Offline Send Email
May 27, 2008
11:53 pm
57
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...
Merlin
harry152566
Offline Send Email
May 28, 2008
10:57 am
58
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...
Jakob Kruse
thekrucible
Offline Send Email
May 28, 2008
11:06 am
59
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 =...
Merlin
harry152566
Offline Send Email
May 28, 2008
7:22 pm
60
... 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...
Merlin
harry152566
Offline Send Email
May 28, 2008
8:10 pm
61
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...
Douglas Crockford
douglascrock...
Offline Send Email
May 29, 2008
1:58 pm
62
Hi, function myFunc() { var v1 = { option: true }; var v2 = v1.option = false; }; JSLint throws the following error messages for the above code snippet: Error:...
ps_praveenkr
Offline Send Email
May 30, 2008
6:27 pm
63
... 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 =...
Douglas Crockford
douglascrock...
Offline Send Email
May 30, 2008
6:32 pm
64
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...
ps_praveenkr
Offline Send Email
May 30, 2008
7:04 pm
65
... JSLint was in error. Please try it now....
Douglas Crockford
douglascrock...
Offline Send Email
May 30, 2008
8:09 pm
66
... That works. Thanks!...
ps_praveenkr
Offline Send Email
May 30, 2008
8:56 pm
67
The function report now includes urls that are found in html files....
Douglas Crockford
douglascrock...
Offline Send Email
Jun 1, 2008
6:22 am
Messages 35 - 67 of 112   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help