X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ff4c0a9acfa464db3b32edd07f784e00406303b5..308aa7c7d75b50a4b36a70681b5e012dbd023c11:/project/static/js/jquery.lazyload.js?ds=inline diff --git a/project/static/js/jquery.lazyload.js b/project/static/js/jquery.lazyload.js old mode 100644 new mode 100755 index 522250ff..c15167bd --- a/project/static/js/jquery.lazyload.js +++ b/project/static/js/jquery.lazyload.js @@ -23,6 +23,9 @@ } function checkScroll() { + if (container.data('lazyload:lastCheckedScrollTop') == undefined) { + return; + } if (Math.abs(container.scrollTop() - container.data('lazyload:lastCheckedScrollTop')) > settings.scrollThreshold) { container.data('lazyload:lastCheckedScrollTop', container.scrollTop());