Skip to content

Commit

Permalink
reused the existing var
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Feb 21, 2012
1 parent e70df5f commit 8d596dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picturefill.js
Expand Up @@ -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 ] );
}
}
Expand Down

0 comments on commit 8d596dd

Please sign in to comment.