Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Jehl committed Jan 19, 2011
1 parent 4ebcc99 commit d666ba4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions matchMedia.js
Expand Up @@ -25,8 +25,10 @@ if ( !(window.matchMedia) ){

return function(q){
if (cache[q] === undefined) {
var styleBlock = doc.createElement('style');
var cssrule = '@media '+q+' { #ejs-qtest { position: absolute; } }';
var styleBlock = doc.createElement('style'),
cssrule = '@media '+q+' { #ejs-qtest { position: absolute; } }';
//must set type for IE!
styleBlock.type = "text/css";
if (styleBlock.styleSheet){
styleBlock.styleSheet.cssText = cssrule;
// IE8 does not seem to support the styleSheet property nor appendChild with style elements:
Expand Down

0 comments on commit d666ba4

Please sign in to comment.