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

Reed Wade reed at catalyst.net.nz
Tue Feb 15 00:08:52 CET 2011


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