New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
should-degrade should degrade #94
Comments
I've got some updates for the docs waiting to be pushed which (amongst I'll close this issue when pushed
|
May I use your script in IE8 without a polyfill? |
Yes, enquire assumes a polyfill has been loaded. if you don't want to include the whole polyfill you can easily provide a stub implementation for older browsers: window.matchMedia = window.matchMedia || function() {
return {
matches : false,
addListener : function() {},
removeListener : function() {}
}
}; enquire will then respect the shouldDegrade flag for older browsers without the need for an actual polyfill |
@WickyNilliams Great to hear about dropping the jQuery dependency! Looking forward to it! |
This may have taken me 3 years, but I'm close to updating the docs to fix this. Thanks for your (extreme) patience 😆 |
@WickyNilliams need any help with the docs ? Is there a branch ? |
Please use jQuery on this page, e.g. Zepto does not support IE8.
http://wicky.nillia.ms/enquire.js/examples/should-degrade/
The text was updated successfully, but these errors were encountered: