LeaVerou / multirange

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

CDN, package.json, CSS Variables free #8

Open jmas opened 8 years ago

jmas commented 8 years ago

CDN is good place where polyfills can be.

You can add package.json to add npm support. Other developers can import your polyfill to page through browserify.

As you can see caniuse statistics - CSS Variables is supported only by modern browsers. So please add IE browsers support.

markasoftware commented 5 years ago

There is an npm package -- although if it's by the original author I'm unsure -- but it still creates multirange as a global variable, which is not idiomatic. Ideally, it should do some sort of detection to see if it is running in a CommonJS environment and assign to module.exports conditionally.

LeaVerou commented 5 years ago

@jmas I doubt at this point this would be accepted anywhere as a polyfill, since the relevant syntax was removed from the spec due to lack of implementor interest :( This in turn reduced my interest in maintaining this plugin TBH...

@markasoftware Feel free to send a PR for this and (assuming it works and it's not huge) I'll merge it :)