[dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js"
- From: James Lin <guanfenglin@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Wed, 3 Jun 2009 07:36:27 +1200
> Like a lot of such tools, this one seems to be a purist. It seems to want
> brackets after the if statements:
> if(x) {
> blah_blah;
> }
> In fact, Flanagan, in section 6.3 of Javascript The Definitive Guide
> (O'Reilly), defines the if statement without brackets:
> if(expression)
> statement
>
> Judging from this lint's output there's nothing wrong with the script. The
> discussion plugin, which I use, works without error.
I think having the brackets will be much safer since dokuwiki concat all the
plugin scripts into one single big block
- Follow-Ups:
- References:
Other related posts:
- » [dokuwiki] Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js" - Kingsley G. Morse Jr.
- » [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js" - Andreas Gohr
- » [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js" - Kingsley G. Morse Jr.
- » [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js" - Andreas Gohr
- » [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js" - Michael Klier
- » [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js" - Jerry Schwartz
- » [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js" - Myron Turner
- » [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js" - James Lin
- » [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js" - Myron Turner
- » [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js" - Myron Turner