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 your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 383 - 413 of 993   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
383
It seems that using a variable named "constructor" that is not declared (which in itself is wrong off course) always produces a strange error. The rhino...
bertbelder
Offline Send Email
Mar 4, 2009
8:48 pm
385
It would be cool if it were possible to surpress warnings/errors that originate form a certain line. For example, occasionaly I conciously use an unfiltered...
bertbelder
Offline Send Email
Mar 4, 2009
9:11 pm
386
... Thanks for the report. Please try it again....
Douglas Crockford
douglascrock...
Offline Send Email
Mar 4, 2009
9:14 pm
387
Wow! I've never had a response to a bug report that quickly, ever. It's fixed indeed. Thanks. -Bert...
bertbelder
Offline Send Email
Mar 4, 2009
9:26 pm
388
Try this: var o = {test: 4}; /*jslint forin: false*/ for (k in o) { alert(k); } /*jslint forin: true*/ ... -- We know the hard things are possible, we just...
Noah Peters
boyopeg
Offline Send Email
Mar 5, 2009
1:38 am
389
... Linted on itself: Error: Problem at line 180 character 1: Expected an assignment or function call and instead saw an expression. "use strict"; Problem at...
santini.alberto
Offline Send Email
Mar 5, 2009
8:17 pm
390
I find the requirement for using braces excessively anal in such if compounds as: if (/*expression*/) {/*single statement*/} else {/*single statement*/} Is...
zoney70
Offline Send Email
Mar 6, 2009
6:37 pm
391
... My advice is that you get used to it. For the cost of two characters, your code will be less error prone. That is a really good tradeoff....
Douglas Crockford
douglascrock...
Offline Send Email
Mar 6, 2009
6:44 pm
392
True that! Most C-like languages allow the brace-less consequent, but it's evil! Evil, I say! Seriously, it's difficult to read and error-prone. M. ...
Michael Lorton
mlorton
Online Now Send Email
Mar 6, 2009
6:47 pm
393
... Another option is to just add the feature to your own copy of fulljslint.js. I did this for just this scenario. Add a 'braces' option, then add a boolean...
James Clark
sbj@...
Send Email
Mar 6, 2009
7:00 pm
394
... it's evil! Evil, I say! ... it's evil! Evil, I say! ... Seriously, having lived on the planet for seven decades and programmed for nearly five of them, I...
zoney70
Offline Send Email
Mar 6, 2009
7:09 pm
395
Are there any (Windows platform) javascript-aware editors (syntax highlighting) out there that auto-format for jslint (such as proper indenting, automatic...
zoney70
Offline Send Email
Mar 6, 2009
7:15 pm
396
... I know the following editors/ide doing that: emacs, vi, scite, aptana studio. Regards, Alberto...
santini.alberto
Offline Send Email
Mar 6, 2009
8:45 pm
397
One possible pitfall is if by any chance you pass something that is not an integer to the Array constructor new Array(3) is like [undefined, undefined,...
Stoyan Stefanov
ssttoobg
Online Now Send Email
Mar 7, 2009
12:53 am
398
... The eval exclusion was for the benefit of JSONT and json2. They represent uses of eval that are beneficial. I have no excuse for the line breaking option....
Douglas Crockford
douglascrock...
Offline Send Email
Mar 7, 2009
2:43 pm
399
A robust coding style demands that symbols should be declared before they are used. But how is this possible in the case of mutually recursive functions? If...
Douglas Crockford
douglascrock...
Offline Send Email
Mar 10, 2009
8:09 pm
400
With the difference that in the first way the function b is declared in the scope of function a Whereas in the second way function a and b are in the same...
Alexandre Morgaut
morgaut_a
Offline Send Email
Mar 11, 2009
1:17 pm
401
The way I read this, in the first example the function ‘b’ is recreated (which would take time) every time ‘a’ is called. Strictly speaking you would...
Jakob Kruse
thekrucible
Offline Send Email
Mar 11, 2009
1:29 pm
402
I agree with you Jakob For myself I may have declared the function with an empty function var a = function() {}; So that : - a validator which would check then...
Alexandre Morgaut
morgaut_a
Offline Send Email
Mar 11, 2009
2:00 pm
403
Thank's, I didn't realize that it was possible to set jslint options for a part of the file. However, there are still warnings I'd like to suprpress sometimes...
bertbelder
Offline Send Email
Mar 13, 2009
2:43 am
404
... I think it is better to fix your code than to document that it is intentionally faulty....
Douglas Crockford
douglascrock...
Offline Send Email
Mar 13, 2009
8:20 pm
405
If I have such kind of code try { something } catch (e) {} Means I don't care about e, I will not use it. Unfortunately I have to write catch(e) because catch...
Fred Lorrain
grumelo68
Offline Send Email
Mar 23, 2009
3:08 pm
406
... Fixed. Thanks....
Douglas Crockford
douglascrock...
Offline Send Email
Mar 23, 2009
10:22 pm
407
Douglas, Do you keep change logs and/or release notes between versions of JSLint? This would be nice to post next to the documentation link on...
Frederick Staats
frederickstaats
Offline Send Email
Mar 23, 2009
10:43 pm
408
... No. ... http://www.JSLint.com/fulljslint.js (The link is on the documentation page.)...
Douglas Crockford
douglascrock...
Offline Send Email
Mar 23, 2009
11:06 pm
409
I have seen a lot of confusion around use of immediate invocation of functions. I think JSLint can help if we can insist on some specific styling. I am...
Douglas Crockford
douglascrock...
Offline Send Email
Mar 23, 2009
11:45 pm
410
... I agree about the first "bad" example, but I see a lot more people using the second form rather than the third, and I personally also find it much clearer....
crlender
Offline Send Email
Mar 24, 2009
1:16 am
411
... disallow option and "funcblock" option. Regards, Alberto...
santini.alberto
Offline Send Email
Mar 24, 2009
5:28 am
412
... Should it be a tolerate option or a disallow option, and what should the option be called? ... Suggest "Disallow bad (immediate) invocation". Preference...
Merlin
harry152566
Offline Send Email
Mar 24, 2009
12:30 pm
413
... "badfunk"? :) -Dom...
dom@...
happygiraffe...
Offline Send Email
Mar 24, 2009
12:36 pm
Messages 383 - 413 of 993   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

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