[Koha-devel] reminder when editing JS -- (IE hates you)

Reed Wade reedwade at gmail.com
Tue Feb 15 00:54:17 CET 2011


And, if I learned how to read mail better I'd notice this was already
a recent topic of discussion.

Nevermind,
-reed



On Tue, Feb 15, 2011 at 12:08 PM, Reed Wade <reed at catalyst.net.nz> wrote:
> I've just been fixing some of these which cause random versions of IE
> to fail in random ways so thought I'd send a reminder to the list.
>
> Compare this:
>
>
> Calendar.setup({
>    blah  : "pie",
>    blarg : "cake",
> });
>
>
> with this:
>
>
> Calendar.setup({
>    blah  : "pie",
>    blarg : "cake"
> });
>
>
> That spare comma after the cake in the first example will cause some
> flavours of IE to choke. Most browsers aren't so fragile on that
> point.
>
> It's easy to accidentally leave these laying around when changing args
> around and they don't tend to break for most browsers. Maybe we can
> add in a test for these at some point in the future. I can imagine a
> regex that should catch the bulk if not all of them.
>
> -reed
>


More information about the Koha-devel mailing list