Skip to content

Commit

Permalink
Exit when last element
Browse files Browse the repository at this point in the history
  • Loading branch information
niksy committed Jan 9, 2014
1 parent 878a604 commit 35821e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion picture.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@
picture.pictureSource.push(sourceData);
}
}
if ( j === 0 ) {
break;
}
}
}

Expand All @@ -195,4 +198,4 @@
// Set up listeners
_addEvent(_eventPrefix + 'DOMContentLoaded', _init);
_addEvent(_eventPrefix + 'load', _init);
})(window);
})(window);

0 comments on commit 35821e7

Please sign in to comment.