CreativeIT / getmdl-select

Select for material-design-lite
http://creativeit.github.io/getmdl-select/
MIT License
301 stars 87 forks source link

Fixed window.onload overload bug #43

Closed mwebbers closed 8 years ago

mwebbers commented 8 years ago

window.onload can only be set once. This means that the last script that sets windows.onload is initialised. To make sure this library can work together with other libraries we changed we added the callback to the event listener.

randrianov commented 8 years ago

@mwebbers thanks a lot for your pull-request.

mwebbers commented 8 years ago

@randrianov np, i just noticed i only updated the src version. The minified version needs to be refreshed. Also I don't know the browser support of this repository, but the addEventListener() function works from IE9. You can create a fallback to attachEvent(), if you want to support IE8