Permalink
Browse files

Merge pull request #21 from atlatl/master

multiple images
  • Loading branch information...
2 parents 5cfe8c7 + 1d66b85 commit 72a47ae85db7bdd68b5f133c7cdc305d14ccbda5 Scott Jehl committed Jun 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 picturefill.js
View
@@ -10,6 +10,7 @@
// 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" ),
@@ -25,7 +26,7 @@
}
// Find any existing img element in the picture element
- var picImg = ps[ i ].getElementsByTagName( "img" )[ 0 ];
+ picImg = ps[ i ].getElementsByTagName( "img" )[ 0 ];
if( matches.length ){
if( !picImg ){

0 comments on commit 72a47ae

Please sign in to comment.