
|
[dokuwiki]
||
[Date Prev]
[05-2007 Date Index]
[Date Next]
||
[Thread Prev]
[05-2007 Thread Index]
[Thread Next]
[dokuwiki] Re: Using JSLint
- From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 20 May 2007 16:02:49 +0200
On Sun, 20 May 2007 07:53:50 -0500
Myron Turner <turnermm02@xxxxxxx> wrote:
> I've been working for some time on a plugin for DokuWiki which uses
> some Javascript. Of course, I want as much as possible to satisfy
> the rules for plugins and use of various features such as
> javascript. On the info page for use of javascript
> (http://wiki.splitbrain.org/wiki:devel:javascript), it is recommended
> that we pass out scripts through JSLint, because if the scripts don't
> conform to JSLint, errors will creep in when DokuWiki compresses the
> Javascript But it's hard to know how far to take the warnings
> emitted by JSLint, which at least to me seem a bit quirky.
>
Yes it is quirky. Don't take it too seriously. Basically you should make
sure to have semicolons where they are optional and stuff like that.
Because the compressor will pack everything in a single line these are
the things that usually make problems. If your script still works when
run through DokuWiki's compressor, feel free to ignore JSLint's
warnings.
Andi
--
http://www.splitbrain.org
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
|

|