Was wondering why the YUI Compressor and my javascript editor
(Eclipse) were complaining about jquery.tree.js...
The culprit is the 6 code lines which contains:
opts.static
Since static is a javascript reserved word, any compressor compliant
with the ECMA script standard would choke on these lines.
I simply replaced opts.static by opts['static'].
Just a headup to the programmer.
--
You received this message because you are subscribed to the Google Groups "jsTree" group.
To post to this group, send email to jst...@googlegroups.com.
To unsubscribe from this group, send email to jstree+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jstree?hl=en.
Kindest regards,
Ivan
On 7 Фев, 23:27, John Arrowwood <jarro...@gmail.com> wrote:
> There are other reserved words that some browsers choke on. For example, if
> you tried to do foo.class, Safari chokes on it. I never tried using
> foo['class'], I just used a different field name...
>
> That is a good note to Ivan, though. YUI compressor shouldn't choke...
>
> On Sun, Feb 7, 2010 at 12:59 PM, Kostrowsky <francois.x.h...@gmail.com>wrote:
>
>
>
> > Howdy,
>
> > Was wondering why the YUI Compressor and my javascript editor
> > (Eclipse) were complaining about jquery.tree.js...
>
> > The culprit is the 6 code lines which contains:
>
> > opts.static
>
> > Since static is a javascript reserved word, any compressor compliant
> > with the ECMA script standard would choke on these lines.
>
> > I simply replaced opts.static by opts['static'].
>
> > Just a headup to the programmer.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "jsTree" group.
> > To post to this group, send email to jst...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > jstree+un...@googlegroups.com<jstree%2Bunsu...@googlegroups.com>