Don't use named arrays in IE.
Don't add indexOf to the prototype of Array when you discover IE has no indexOf in it's native Array proto. For-in loops everywhere will break if you extend Array.prototype.
Do not use for-in loops on arrays in IE just in case you need to extend Array.prototype, but srsly, don't extend Array.prototype.
and for heavens sake only loop on enumerable members.
I just spent the last 8 hours debugging. IE does not hide prototype extensions in a proto object. they're out there, lurking, waiting to destroy your application.
and also
:facestab:
8 hours people.
8 hours of trying to figure out why all the for in loops in the js exploded in IE8.
srsly.
o
m
g
That's fucking crazy.
:(
Yeah, that's one lesson I learned a few years ago the hard way. I feel your pain. :(