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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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 567 - 597 of 993   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
567
I'm building my final .js file thanks to Ant scripting. Currently I'm validating every single pieces independently. Thanks to /*global */ I can ride of the...
Fred Lorrain
grumelo68
Offline Send Email
Jun 1, 2009
11:53 am
568
... Is execution not an indication of use? I would think if something were properly executed it is used code by the interpreter even if that usage, or any...
sandyhead25
Offline Send Email
Jun 1, 2009
12:09 pm
569
... Can you please explain why in more detail? Could not declaring the same variable more than once could also lead to confusion? I think when most people...
Arthur Blake
blakesys
Offline Send Email
Jun 1, 2009
12:29 pm
570
... When I execute the program I am presented with a first alert displaying "9" and then a second alert displaying "6". If I remove z from the program the...
sandyhead25
Offline Send Email
Jun 1, 2009
12:29 pm
571
As with the others that have commented. I was very excited when this feature was introduced, and find it very useful. I often have multiple js files that are...
benxwhite
Offline Send Email
Jun 1, 2009
3:18 pm
572
... In answer to people's concerns: I believe the primary reason for this change is that "use strict" mode does not allow implied globals: ...
pauanyu
Offline Send Email
Jun 1, 2009
4:40 pm
573
I also find removing the support for /*global */ to be a major setback. Combining several JavaScript files into one for deployment is somewhat a must. In most...
Jakob Kruse
thekrucible
Offline Send Email
Jun 1, 2009
5:24 pm
574
... I seem to be missing something here. Why are people okay with writing: /*global $ */ But not: var $; This is very perplexing to me. Why would you choose a...
pauanyu
Offline Send Email
Jun 1, 2009
5:41 pm
575
... It affects compression (albeit only a tiny bit unless you have a lot of global variables, which you shouldn't anyway...) And it goes against DRY. Probably...
Arthur Blake
blakesys
Offline Send Email
Jun 1, 2009
5:48 pm
576
... As to your last question: yes....
pauanyu
Offline Send Email
Jun 1, 2009
5:50 pm
577
While in general I approve of being able to turn off warnings, why do you have "possibly several hundred "var $;" statements"? You would need at most one per...
Michael Lorton
mlorton
Offline Send Email
Jun 1, 2009
5:51 pm
578
My first concern with JSLint is correctness. Because I am a deeply flawed human being, and because JavaScript is a deeply flawed programming language, I depend...
Douglas Crockford
douglascrock...
Online Now Send Email
Jun 1, 2009
6:15 pm
579
200-500 javascript files in an application is common where I work. Most of those files use some JavaScript library, for instance Prototype. All JavaScript...
Jakob Kruse
thekrucible
Offline Send Email
Jun 1, 2009
6:44 pm
580
Very well said. Thanks for explaining that in depth. I think it makes a lot of sense now. Still, it might be nice to have an ES5 strict mode flag in JSLint...
Arthur Blake
blakesys
Offline Send Email
Jun 1, 2009
6:52 pm
581
... Looking at an older version of jslint.js (2008-11-07), it has the ... The way I understand it, /*global*/ is normally used to disable warnings about...
crlender
Offline Send Email
Jun 1, 2009
6:56 pm
582
Good. Perhaps this will inspire people to merge their various JS files into a single file for output at the CMS layer prior to validation. That would be the...
sandyhead25
Offline Send Email
Jun 1, 2009
7:15 pm
583
One thing I can do is to add more Assume options supporting popular Ajax libraries. If you are responsible for a popular Ajax library with a small, stable list...
Douglas Crockford
douglascrock...
Online Now Send Email
Jun 1, 2009
7:23 pm
584
Or, add some extrinsic way of saying, "These are the globals I'm not declaring but I don't want me to yentz me about." M. ________________________________ ...
Michael Lorton
mlorton
Offline Send Email
Jun 1, 2009
7:34 pm
585
... For library authors managing separate files and combing at runtime, what about using the old /*extern */ declaration? That seems like it would be a...
Randall Lee Spence
analogueweb
Offline Send Email
Jun 1, 2009
7:43 pm
586
... Right. You don't throw the baby out with the bathwater, even if the baby is dead. So I am keeping /*global */. The variables that it defines will be const....
Douglas Crockford
douglascrock...
Online Now Send Email
Jun 1, 2009
8:10 pm
587
Perfect! :) /Jakob ... From: Douglas Crockford [mailto:douglas@...] To: jslint_com@yahoogroups.com Sent: Mon, 01 Jun 2009 22:10:20 +0200 Subject:...
Jakob Kruse
thekrucible
Offline Send Email
Jun 1, 2009
8:31 pm
588
... /*global foo */ foo.opacity = 255; var f = function () { var foo; foo = 7; }; Error: Problem at line 7 character 5: Global violation. foo = 7;...
Harry Whitfield
harry152566
Offline Send Email
Jun 1, 2009
9:26 pm
590
... Thank you for reconsidering, that's a very elegant solution. - Conrad...
crlender
Offline Send Email
Jun 1, 2009
10:55 pm
591
... It really make sens to use extern because that exactly what they are. In my Scripts most of the entries in /*global*/ are not Global variables....
Fred Lorrain
grumelo68
Offline Send Email
Jun 2, 2009
11:24 am
592
Arrays work really differently in JavaScript than in most other languages. If you do not understand those differences, you can be in for a world of hurt....
Douglas Crockford
douglascrock...
Online Now Send Email
Jun 2, 2009
8:10 pm
593
... Will you share this useful case, or must it remain a mystery? --Randy -- Randy Cox Senior UI Engineer Compendium Blogware...
Randy Cox
randykcox
Offline Send Email
Jun 2, 2009
8:18 pm
594
I believe the useful case is where the argument is a integer. My own opinion would be that that case isn't useful enough to justify allowing the construct at...
Michael Lorton
mlorton
Offline Send Email
Jun 2, 2009
9:25 pm
595
I am curious why JSLint dislikes this: var foo = new function () { this.bar = 1; }(); Without the "new", "this" is bound to the global object. It is true that...
pauanyu
Offline Send Email
Jun 2, 2009
10:48 pm
596
... The object will always have the new function's prototype in its inheritance chain, which will be linked to the function. Every time you make another foo,...
Douglas Crockford
douglascrock...
Online Now Send Email
Jun 2, 2009
11:12 pm
597
... Ah, so it has to do with more efficient memory management. I continue to be amazed how powerful the "return {}" construct is. At any rate, thanks for...
pauanyu
Offline Send Email
Jun 2, 2009
11:40 pm
Messages 567 - 597 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