pyrsmk / mediatizr Goto Github PK
View Code? Open in Web Editor NEWA media queries polyfill
License: MIT License
A media queries polyfill
License: MIT License
line 46 character 25
This is what is being output in the console for IE stylesheets.
stylesheets
[] {
mediatizr1styles : " (max-width: 979px) ",
mediatizr2styles : " (max-width: 979px) ",
mediatizr3styles : " (max-width: 1600px) ",
mediatizr4styles : " (max-width: 1275px) ",
indexOf : function(obj, start) { for (var i = (start || 0), j = this.length; i < j; i++) { if (this[i] === obj) { return i; } } return -1; }
}
This is an easy fix and I'll send a pull request for it. Stylesheets are set to an array, when it is actually being used as an object. Additionally, it might make sense if stylesheets was utilized as an array containing objects rather than an object containing key/value, since the array should be faster to iterate over. IE always has an indexOf property/key on instances of an Array, while other browsers won't iterate over it.
Hey bro, add them!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.