gordonbanderson / Mappable

Mappable module for SilverStripe CMS
BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

do not use window.onload - can be overwritten later #20

Closed wernerkrauss closed 9 years ago

wernerkrauss commented 9 years ago

also fixed a small typo...

gordonbanderson commented 9 years ago

Good catch and one to note for the future with other projects. The Google Maps API docs were what I based my JavaScript on though, and they use the window.onload = some_function methodology, see https://developers.google.com/maps/documentation/javascript/tutorial