Permalink
Browse files

no need for reassign picImg now that second else if was removed

  • Loading branch information...
1 parent 1d66b85 commit ea0189e0e117a516b7075096e363289a23079150 atlatl committed Jun 21, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 picturefill.js
View
@@ -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" ),
@@ -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 ){

0 comments on commit ea0189e

Please sign in to comment.