Skip to content

Commit

Permalink
Merge pull request aFarkas#791 from rubbad/gh-pages
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
aFarkas authored Jun 1, 2020
2 parents bce35e5 + b7192aa commit bd19a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ document.addEventListener('lazybeforeunveil', function(e){
```js
$(document).on('lazybeforesizes', function(e){
//use width of parent node instead of the image width itself
e.detail.width = $(e.target).closest(':not(picture)').innerWidth() || e.detail.width;
e.detail.width = $(e.target).parents(':not(picture)').innerWidth() || e.detail.width;
});
```

Expand Down

0 comments on commit bd19a8a

Please sign in to comment.