Permalink
Browse files

reused the existing var

  • Loading branch information...
1 parent e70df5f commit 8d596dd9be4685aa285eb80655ee7fddd904060e scottjehl committed Feb 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 picturefill.js
View
@@ -26,7 +26,7 @@
// See if which sources match
for( var j = 0, jl = sources.length; j < jl; j++ ){
var media = sources[ j ].getAttribute( "media" );
- if( !media || w.matchMedia( sources[ j ].getAttribute( "media" ) ).matches ){
+ if( !media || w.matchMedia( media ).matches ){
matches.push( sources[ j ] );
}
}

0 comments on commit 8d596dd

Please sign in to comment.