... Wow ! Incredible! Thank you so much for your quick update. Your tool really rocks....
155
Ben Collver
tylx
Aug 13, 2008 5:38 pm
Hi Doug, I wrote an example script and it appears to bind to the current value of the variable "i". The script is at the following URL. ...
156
Douglas Crockford
douglascrock...
Aug 13, 2008 6:31 pm
... Create a page with three buttons, a, b, and c. When you click on a button, it alerts its number. Modify your loop to get each element by id and attach an...
157
DoNotSay
ghumham
Aug 14, 2008 1:26 pm
I have two functions: function blddrgable() { $j('div.blddrg').draggable("destroy").droppable("destroy"); ...
158
Fred Lorrain
grumelo68
Aug 14, 2008 1:26 pm
Hello, Is it a good practice to try to use a single 'var' statement per scope? For sure it help the compression of the script. If it's a best practice can an...
159
Fred Lorrain
grumelo68
Aug 14, 2008 1:26 pm
Hello, JSLint generate an error if a symbol is not declared. That's perfect! What about generating a warning if a symbol is declared but never used? A switch...
160
Douglas Crockford
douglascrock...
Aug 14, 2008 2:54 pm
... gboxJSON2("/swapbild",{"von":$j(this).attr("id"),"nach":$j(ui.draggable).attr("id")},function(erg){}); ... The global trick obviously only works if the...
161
Douglas Crockford
douglascrock...
Aug 14, 2008 3:33 pm
... I don't understand this....
162
Douglas Crockford
douglascrock...
Aug 14, 2008 3:35 pm
... JSLint does identify unused variables in the function report. Is hat not enough?...
163
Arthur Blake
blakesys
Aug 14, 2008 4:07 pm
I think he's trying to ask if it is better to use this form: var x,y,z; versus var x; var y; var z; My opinion is yes, because it makes the script smaller and...
164
Douglas Crockford
douglascrock...
Aug 14, 2008 4:25 pm
... could help ... Thanks, I get it now. I think it is a good suggestion....
165
Douglas Crockford
douglascrock...
Aug 14, 2008 10:16 pm
JSLint is able to parse Yahoo Widgets .kon files. Is any using JSLint on widgets? Would anyone nice if I took that feature out?...
166
Fred Lorrain
grumelo68
Aug 15, 2008 3:41 pm
... used? ... It's fine to have it in the report (I haven't seen it) but imagine I have 100 methods in my object. For every unused symbol I will have to track...
167
Paul
dwtebriel
Aug 15, 2008 3:41 pm
Hey all, I currently have code that looks like the following: <script type="text/javascript"> //<![CDATA[ ... //]]> </script> Since I'm doing this in xhtml, my...
168
Jacob Davenport
jpdavenportjr
Aug 15, 2008 8:33 pm
This produces an error: function a() { return ( doStuff(m, n) + "someString" ); } Imagine that the doStuff and someString lines are long, thus the desire to...
169
Douglas Crockford
douglascrock...
Aug 15, 2008 8:51 pm
... JSLint does not like to break after a string literal. This is protect you from semicolon insertion. You can either turn on the sloppy line breaking option,...
170
Douglas Crockford
douglascrock...
Aug 15, 2008 11:08 pm
... XHTML is a fiction. If it were real, you wouldn't need to hide the hideous CDATA overhead behind JavaScript comments. You would do better to write your...
171
DoNotSay
ghumham
Aug 16, 2008 3:17 pm
Douglas, ... gboxJSON2("/swapbild",{"von":$j(this).attr("id"),"nach":$j(ui.draggable).attr("id")},function(erg){}); ... It also works with non-global...
172
Douglas Crockford
douglascrock...
Aug 16, 2008 3:18 pm
... It is insignificant....
173
santini.alberto
Aug 17, 2008 1:24 pm
For the release Aug, 12nd, at line 910 JSLint (run on itself) displays the message "Unexpected escaped character '<' in regular expression." ... if (src ||...
174
Douglas Crockford
douglascrock...
Aug 18, 2008 7:38 pm
I added a onevar option. It allows only one var statement per function. Unused variables are easier to see in the function report. I removed support for .kon...
175
Fred Lorrain
grumelo68
Aug 19, 2008 6:50 am
... Thanks a lot for this quick update....
176
Fred Lorrain
grumelo68
Aug 19, 2008 6:52 am
... The new 'onevar39; option can now be used to that...
177
Fred Lorrain
grumelo68
Aug 19, 2008 6:54 am
... this tool ... help. ... In the new release of JSLint the symbol report has been improved to highlight unused symbols....
178
Fred Lorrain
grumelo68
Aug 19, 2008 9:08 am
Hello, I'm for sure too strict, too maniac but ... JSLint is used to validate JavaScript so what about providing perfect JavaScripts in JSLint? If you turn on...
179
Fred Lorrain
grumelo68
Aug 19, 2008 9:40 am
Hello, Here again your most devoted fan come with an improvement request :D There some HTML issues on the page http://www.jslint.com/ Very easy to fix, so...
180
Paul
dwtebriel
Aug 19, 2008 4:25 pm
... Hey thanks for the reply! For the browsers that support a content-type of "application/xml+xhtml", is there any advantage for JavaScript when working with...
181
Fred Lorrain
grumelo68
Aug 20, 2008 11:46 am
Hello, I know that break is recommended before a case but it's not mandatory. In the following example there is nothing wrong, right? switch (this.layout) { ...
182
Ben Collver
tylx
Aug 20, 2008 12:08 pm
I created a page with three buttons, a, b, and c. When you click on a button, it alerts its number. I modified the loop to attach an onclick handler to each...