Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #24 from lkrids/master
Browse files Browse the repository at this point in the history
undo moving a var declaration
  • Loading branch information
Scott Jehl committed Jun 21, 2012
2 parents 72a47ae + ea0189e commit ff12494
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions picturefill.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// Loop the pictures
for( var i = 0, il = ps.length; i < il; i++ ){
var picImg = null;
if( ps[ i ].getAttribute( "data-picture" ) !== null ){

var sources = ps[ i ].getElementsByTagName( "div" ),
Expand All @@ -26,7 +25,7 @@
}

// Find any existing img element in the picture element
picImg = ps[ i ].getElementsByTagName( "img" )[ 0 ];
var picImg = ps[ i ].getElementsByTagName( "img" )[ 0 ];

if( matches.length ){
if( !picImg ){
Expand Down

0 comments on commit ff12494

Please sign in to comment.