Skip to content

Commit

Permalink
4.0.0-rc4
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander.farkas committed Oct 6, 2017
1 parent fb14021 commit 27a1386
Show file tree
Hide file tree
Showing 25 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion lazysizes-umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@
var sizes = isImg && (elem[_getAttribute](lazySizesConfig.sizesAttr) || elem[_getAttribute]('sizes'));
var isAuto = sizes == 'auto';

if( (isAuto || !isCompleted) && isImg && (elem[_getAttribute]('src') || elem.srcset) && !elem.complete && !hasClass(elem, lazySizesConfig.errorClass)){return;}
if( (isAuto || !isCompleted) && isImg && (elem[_getAttribute]('src') || elem.srcset) && !elem.complete && !hasClass(elem, lazySizesConfig.errorClass) && hasClass(elem, lazySizesConfig.lazyClass)){return;}

detail = triggerEvent(elem, 'lazyunveilread').detail;

Expand Down
4 changes: 2 additions & 2 deletions lazysizes-umd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lazysizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
var sizes = isImg && (elem[_getAttribute](lazySizesConfig.sizesAttr) || elem[_getAttribute]('sizes'));
var isAuto = sizes == 'auto';

if( (isAuto || !isCompleted) && isImg && (elem[_getAttribute]('src') || elem.srcset) && !elem.complete && !hasClass(elem, lazySizesConfig.errorClass)){return;}
if( (isAuto || !isCompleted) && isImg && (elem[_getAttribute]('src') || elem.srcset) && !elem.complete && !hasClass(elem, lazySizesConfig.errorClass) && hasClass(elem, lazySizesConfig.lazyClass)){return;}

detail = triggerEvent(elem, 'lazyunveilread').detail;

Expand Down
Loading

0 comments on commit 27a1386

Please sign in to comment.