TwelvestoneProjects and Theory

internet explorer 7+


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
persist
 
2010-11-04

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:

persist
 
2010-11-05

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

Stinky
 
2010-11-05

That's fucking crazy.

baron ruhstoff
 
2010-11-05

:(

Stickman
 
2010-11-19

Yeah, that's one lesson I learned a few years ago the hard way. I feel your pain. :(

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneProjects and Theory

internet explorer 7+