Loading ...
Sorry, an error occurred while loading the content.

Messages List

3202

Moving to Google Plus

Yahoo Groups has aged really badly, and recently I was locked out of this group a number of times because of Yahoo's operational problems. So I am moving the
douglascrockford
Apr 5, 2013
#3202
 
3199

Re: option.closure

... The parentheses are required to limit the scope of the type cast. The use of @type for casting is not documented on that page, but there is information on
Jos van den Oever
Mar 28, 2013
#3199
 
3198

Re: option.closure

... Thanks. Please try it now. https://developers.google.com/closure/compiler/docs/js-for-compiler does not indicate that the parens are required. Why are they
douglascrockford
Mar 28, 2013
#3198
 
3197

Re: option.closure

... I have tried on jslint.com with this fragment: === /*jslint closure: true, white: true */ function cast(arg) { "use strict"; return
Jos van den Oever
Mar 28, 2013
#3197
 
3196

Re: get & set

... I use get and set sometimes, I am aware that they are: 1. Not overly performant (js perf type diagnostics). 2. Not compatible in IE < 9 browsers. But in
rodobrist
Mar 27, 2013
#3196
 
3195

Re: get & set

On Wed, Mar 27, 2013 at 11:27 PM, douglascrockford ... The idea is that JSLint would warn when it sees something as the following? o.getX = function () {
Felix E. Klee
Mar 27, 2013
#3195
 
3194

get & set

I have been asked to have JSLint always warn on use of get and set. How would you feel about that?
douglascrockford
Mar 27, 2013
#3194
 
3193

option.closure

I am experimenting with a new option that will tolerate Google Closure declarations. Please let me know if you see problems or omissions.
douglascrockford
Mar 27, 2013
#3193
 
3192

Re: combining Closure Compiler type casting with JSLint

... Writing var a = /**@type{!number}*/(b); also has effect on the white-space. JSLint expects the 'b' to be much closer to the '='. This is a check that can
Jos van den Oever
Mar 27, 2013
#3192
 
3191

Re: combining Closure Compiler type casting with JSLint

... I may add option.closure. Is there any more weirdness?
douglascrockford
Mar 26, 2013
#3191
 
3190

combining Closure Compiler type casting with JSLint

In WebODF, we've been happily using JSLint for some time. It is a terrific tool for non-trivial JavaScript project. In addition to JSLint we are using Closure
Jos van den Oever
Mar 26, 2013
#3190
 
3189

Re: JSLint and HTML

Thanks for all the advice. We have found a workaround. I am sorry to lose the HTML parsing; it was a useful feature.
hemanrobinson
Mar 25, 2013
#3189
 
3188

Re: JSLint and HTML

... You will be better off moving to a build and templating system that pulls in your JavaScript source files and your HTML templates, checks them separately,
Andrew Todd
Mar 22, 2013
#3188
 
3187

Re: JSLint and HTML

... Is it good practice to only check parts of a product and not the assembled product ("a single output file") itself?
falk.werner@...
Mar 21, 2013
#3187
 
3186

Re: JSLint and HTML

On Thu, Mar 21, 2013 at 3:37 PM, hemanrobinson ... Good practice is to use separate files during development, and then
Felix E. Klee
Mar 21, 2013
#3186
 
View First Topic Go to View Last Topic