LeaVerou / multirange

A tiny polyfill for HTML5 multi-handle sliders
http://projects.verou.me/multirange/
MIT License
607 stars 82 forks source link

Don't crash if the oninput property is undefined #35

Closed jauco closed 6 years ago

jauco commented 6 years ago

If I open the webpage on a current chrome or firefox, only the first range slider is transformed. It crashes because the oninput property is not defined.

This should fix that.

jauco commented 6 years ago

btw this is re: #34

LeaVerou commented 6 years ago

I would probably go for input.oninput && input.oninput.bind(input) but this is fine too. Thanks!