Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

jslint_com · This group has moved to Google Plus.

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 584
  • Category: JavaScript
  • Founded: Mar 7, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 124 - 153 of 3202   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
124 santini.alberto Send Email Jul 28, 2008
4:48 pm
For the release 25/07, at line 2583 JSLint (run on itself) displays the message "Parens are not needed here." ... nexttoken, adsafe_id); } else if...
125 Re Miya
remiya_ws Send Email
Jul 28, 2008
6:47 pm
... Waste of time? I never thought about this....
126 osteocosmosis Send Email Jul 28, 2008
8:24 pm
The following 3-line script yields 1 message. I expected 2: /*jslint passfail: false, eqeqeq: true */ var table = new Array(27); var list = new Array(27); ==...
127 Douglas Crockford
douglascrock... Send Email
Jul 28, 2008
8:26 pm
... When I try it I see two errors, not one....
128 Kai Hendry
dadraqsta Send Email
Jul 29, 2008
3:41 pm
I wasted time whilst writing a test for http://www.w3.org/2008/06/mobile-test/ whereby I didn't anonymize a function that I should have done. Otherwise I would...
129 osteocosmosis Send Email Jul 30, 2008
1:42 pm
I am confused. I still get one error from ... Lint at line 2 character 19: Use the array literal notation []. var table = new Array(27); ... /*jslint...
130 montago_2004 Send Email Jul 31, 2008
3:40 pm
Block commenting can be used to switch between two similar functionalities - then by simply removing or adding a '*' in the first '/*/' you switch the two... ...
131 Jacob Davenport
jpdavenportjr Send Email
Jul 31, 2008
7:52 pm
Upon your advice (and one painful experience), I write my "for in" statements like this: for (var listName in listItems) if...
132 Michael Newton
mnewton32 Send Email
Jul 31, 2008
8:48 pm
... (listItems.hasOwnProperty(listName)) { ... The documentation says "JSLint expects blocks with function, if, switch, while, for, do, and try statements and...
133 Michael Newton
mnewton32 Send Email
Jul 31, 2008
8:53 pm
... ECMA says "Comments can be either single or multi-line. Multi-line comments cannot nest."...
134 montago_2004 Send Email Jul 31, 2008
11:36 pm
JSLINT is too strict ! var a = new Array(5); creates an empty array of length 5. what the heck is wrong with that code ? if i need an empty array then I'm...
135 Douglas Crockford
douglascrock... Send Email
Jul 31, 2008
11:57 pm
... That is a terrible practice. It is easy enough to program computers to do useful things. You shouldn't need to rely on silly tricks....
136 Douglas Crockford
douglascrock... Send Email
Aug 1, 2008
12:01 am
... Yes. At one time I was experimenting with that form. I was later persuaded that it was a bad for so I took it out. I am constantly experimenting with...
137 Douglas Crockford
douglascrock... Send Email
Aug 1, 2008
12:04 am
... new Array does not do what you think it does. Part of JSLint's mission is to help you discover where your reasonable expectations about JavaScript are...
138 osteocosmosis Send Email Aug 3, 2008
12:53 am
To concatenate strings I use: // Concatenation of string 'str', n times. function repeatstr (n, str) { var an = new Array(1 + n); return an.join(str); } ... ...
139 Douglas Crockford
douglascrock... Send Email
Aug 3, 2008
12:55 am
... var an = []; an.length = n + 1;...
140 riderpaulpaul Send Email Aug 4, 2008
3:54 am
One big issue in JavaScript is the onload issue. Many of the frameworks have a periodic check to see if the body has loaded using various methods. Since script...
141 Douglas Crockford
douglascrock... Send Email
Aug 4, 2008
10:51 pm
... I don't see how it solves anything. There is a lot in the HTML recommendations that doesn't make sense, but the requirement that the tags all go either...
142 Paul de Jong
riderpaulpaul Send Email
Aug 4, 2008
11:28 pm
The issue I was referring to is that the body tag needs to be completely loaded before a DOM script runs, especially if you have something like...
143 Andy Stevens
andystevens_... Send Email
Aug 5, 2008
2:36 pm
... Not always, I have inline scripts that work just fine so long as the parts of the DOM they are manipulating are ready & available. ... Seems reasonable to...
144 Paul de Jong
riderpaulpaul Send Email
Aug 5, 2008
6:00 pm
The issue with onload is that it is not ondomload, so if any file being downloaded takes too long the script does not fire and the user could be interacting...
145 montago_2004 Send Email Aug 6, 2008
1:16 pm
... no.. its very good practise to code and debug... do you disagree ? this trick relies on a proper parser. I've made it work in my Editor... also works in...
146 Klemen SlaviÄ
klemen.slavic Send Email
Aug 6, 2008
1:30 pm
IMHO, I don't think it's the domain of JSlint to handle these kind of comments, since the output of this algorithm is supposed to be clean code that is meant...
147 montago_2004 Send Email Aug 6, 2008
5:07 pm
... code ... comments still ... code leak ... If only JSLint would report it as an "Error"... JSLint stops completely, so its not even possible to simply...
148 Douglas Crockford
douglascrock... Send Email
Aug 6, 2008
5:15 pm
... upon ... http://groups.google.com/group/jquery-en/browse_thread/thread/e53f483dd67e4d08/f72f7832ead80dfb?lnk=gst&q=JSLint#f72f7832ead80dfb ... JSLint stops...
149 montago_2004 Send Email Aug 6, 2008
8:18 pm
/* Douglas ain't smart. */ Douglas is smart. //------------------------- Q: which of those two statements are more accurate ? A: the one, which is not a...
150 Douglas Crockford
douglascrock... Send Email
Aug 6, 2008
8:20 pm
... Yes it should, because sometimes syntax errors are hidden in comments. Again, I caution you to avoid programming conventions that depend on intentional...
151 Paul de Jong
riderpaulpaul Send Email
Aug 6, 2008
8:47 pm
... For the reasoning behind removing the comments may I recommend: JavaScript: The Good Parts, Douglas Crockford, O'Reilly, 2008....
152 Fred Lorrain
grumelo68 Send Email
Aug 12, 2008
11:28 am
Hello, Here a piece of code: if (this.newsDetailHasAbstract) {HTML += '<div class="articleAbstract&quot;>' + this.myData.record[0][0][3].replace(/<\/?a[^>]*>/gi,'')...
153 Douglas Crockford
douglascrock... Send Email
Aug 12, 2008
11:46 am
... Fixed. Thanks for the report....
Messages 124 - 153 of 3202   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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