Skip to content

Commit

Permalink
Fixed IE google maps bug: IE didn't like dom:loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmorrison committed Oct 4, 2008
1 parent 83080ad commit d4bd59d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion public/javascripts/map.js
Expand Up @@ -114,4 +114,9 @@ var Map = {
}
}

Event.observe(window, "dom:loaded", Map.show);
// Dunno why IE doesn't like dom:loaded.
if (Prototype.Browser.IE) {
Event.observe(window, "load", Map.show);
} else {
Event.observe(window, "dom:loaded", Map.show);
}

0 comments on commit d4bd59d

Please sign in to comment.