[dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js"
- From: Myron Turner <turnermm02@xxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 02 Jun 2009 18:01:03 -0500
Myron Turner wrote:
I should amend that: It shouldn't matter as long as the expression is followed by a semi-colon. JS doesn't require a semi-colon as long as the expression is on a line by itself.James Lin wrote:Like a lot of such tools, this one seems to be a purist. It seems to wantbrackets 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) statementJudging from this lint's output there's nothing wrong with the script. Thediscussion plugin, which I use, works without error.I think having the brackets will be much safer since dokuwiki concat all theplugin scripts into one single big blockIt shouldn't matter.
if(expression)
statement
--
_____________________
Myron Turner
http://www.room535.org
http://www.mturner.org
http://net18reaching.org/cityscapes
_________________________________________________________
Searchable Database of Art and New Media News Feeds
Over 500,000 news items supplied in response to queries
http://net18reaching.org/artrss
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
- [dokuwiki] Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js"
- From: Kingsley G. Morse Jr.
- [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js"
- From: Myron Turner
- [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js"
- From: James Lin
- [dokuwiki] Re: Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js"
- From: Myron Turner
- [dokuwiki] Result of running http://www.jslint.com/ on the "discussion" plugin's file named "script.js"
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