reminder when editing JS -- (IE hates you)
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
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@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
participants (2)
-
Reed Wade -
Reed Wade