Skip to content

Commit

Permalink
revert automatic sizes addition
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Aug 4, 2015
1 parent fe7e477 commit f4f73f3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plugins/parent-fit/ls.parent-fit.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,6 @@

window.addEventListener('lazybeforeunveil', extend, true);

document.addEventListener('lazybeforeunveil', function(e){
var element = e.target;
if(element.getAttribute('data-parent-fit') && !element.getAttribute(lazySizesConfig.sizesAttr) && !element.getAttribute('sizes')){
element.setAttribute(lazySizesConfig.sizesAttr, 'auto');
}
});

document.addEventListener('lazybeforesizes', function(e){
if(e.defaultPrevented){return;}

Expand Down

0 comments on commit f4f73f3

Please sign in to comment.