Hello.I use JsLint a lot from now on.Let the group participate by all means.Thanking you in advance. [Non-text portions of this message have been removed]...
2452
Jérôme DESPATIS
jdespatis
Jul 13, 2011 6:46 am
Hello Is there a chance to see a new option "Assume dojo", as we can already see for node.js, Rhino... ? This option could define custom /*properties */ etc......
2453
Jérôme DESPATIS
jdespatis
Jul 13, 2011 7:23 am
Hello Again on my dojo script, I'd like to prefill the /*properties */ in order to avoid type confusion error on some dojo functions For example in a script...
2454
Jérôme DESPATIS
jdespatis
Jul 13, 2011 11:06 am
Hello, I'm testing JSLint on some css, it says the css must begin with @charset 'UTF-839;; So I add it, no more error with JSLint But when I validate this css to...
2455
Douglas Crockford
douglascrock...
Jul 13, 2011 1:12 pm
... Do you have a complete specification Dojo's globals?...
2456
Douglas Crockford
douglascrock...
Jul 13, 2011 1:16 pm
... The /*properties */ directive tells JSLint that you want checking on all property names. This allows JSLint to detect misspelled names. You might want to...
2457
Douglas Crockford
douglascrock...
Jul 13, 2011 1:20 pm
... I am not going to bother with that unless you can find a browser that has a problem with it....
2458
Jérôme DESPATIS
jdespatis
Jul 13, 2011 2:14 pm
All functions are in dojo, dijit or dojox (dojo.query, dijit.findWidgets etc...) But even by settings those 3 globals for dojo, some type confusion will ... ...
2459
Marcos Zanona
marcos.zanona
Jul 14, 2011 1:28 pm
'use strict'; function test() { return 2 + 2;} with node: false Error: Problem at line 1 character 1: Use the function form of 'use strict'. 'use strict'; with...
2460
Marcos Zanona
marcos.zanona
Jul 14, 2011 1:28 pm
After reading your article<http://www.yuiblog.com/blog/2010/12/14/strict-mode-is-coming-to-town/> I could understand that it is be possible to use both sloppy...
2461
Owen
eclipsechasers2
Jul 14, 2011 2:28 pm
Validating the following fragment: <html> <head> <title>Test</title> <style type="text/css"> @media print { .noprint {display: none; } } </style> </head> ...
2462
Douglas Crockford
douglascrock...
Jul 14, 2011 6:08 pm
... Thanks. Please try it now....
2463
Douglas Crockford
douglascrock...
Jul 14, 2011 6:09 pm
... This is intended....
2464
Douglas Crockford
douglascrock...
Jul 14, 2011 6:10 pm
... All inner functions of a strict function are also strict....
2465
mariuszn3
Jul 14, 2011 7:36 pm
As Douglas said, if you turn on 'node' option it means that you're validating file which is CommonJS module, which will not be run in global scope but in it's...
2466
Marcos Zanona
marcos.zanona
Jul 14, 2011 7:54 pm
that was a good explanation, thanks so much it makes a lot of sense :) [Non-text portions of this message have been removed]...
Here is a little script where JSLint throws an error, it's valid js for me: Problem at line 4 character 5: Expected an identifier and instead saw 'with'. with...
Ok thanks, I change my code ... -- Jérôme Despatis jerome@... [Non-text portions of this message have been removed]...
2470
Owen
eclipsechasers2
Jul 15, 2011 12:46 pm
Works well! Thanks....
2471
Douglas Crockford
douglascrock...
Jul 15, 2011 1:24 pm
... You can read the instructions: http://www.jslint.com/lint.html#with...
2472
Douglas Crockford
douglascrock...
Jul 15, 2011 9:46 pm
Is anyone still using comma expressions in the control part of for statements? I think this is a bad practice, but JSLint currently tolerates it....
2473
Erik Eckhardt
vorpalmage
Jul 15, 2011 9:56 pm
Would you be willing to explain (or point us to something explaining) the pitfalls of this practice? ... [Non-text portions of this message have been removed]...
2474
Douglas Crockford
douglascrock...
Jul 15, 2011 10:05 pm
... There are two. First, the confusion between with comma operator and the comma separator. Having both in the language tends to mask syntax errors....
2475
Rob Richardson
erobrich@...
Jul 15, 2011 10:32 pm
How serendipitous, I happened to be researching this very thing yesterday. Here's some of the things I stumbled upon that talk about for-loop performance in...
2476
Erik Eckhardt
vorpalmage
Jul 15, 2011 10:44 pm
I just saw in a small jQuery plugin I was borrowing for my own use: function checkUndefined(a) { return typeof a === 'undefined39;; }; if (checkUndefined(data))...
2477
Erik Eckhardt
vorpalmage
Jul 15, 2011 10:49 pm
It is possible to avoid using the comma. Is this any better? (function () { "use strict"; var arr = [], i = 0, len = arr.length; // Populate arr for ( ; i <...
2478
Brian Ford
briantford...
Jul 15, 2011 10:53 pm
The comma isn't necessary; can't you do this and still retain the optimization? (function () { ````"use strict"; ````var i, len, arr = []; ````// Populate arr ...
2479
Douglas Crockford
douglascrock...
Jul 15, 2011 11:01 pm
... They are not. It is likely that other engines and future engines will have different characteristics. You should not be choosing forms for their...
2480
Douglas Crockford
douglascrock...
Jul 15, 2011 11:01 pm
... If I were to provide such a service, would the jQuery community use it?...