From 29e85f3abb726164e4fb336fccdbffb8819c9d13 Mon Sep 17 00:00:00 2001 From: zuber Date: Sat, 22 Aug 2009 23:04:21 +0200 Subject: [PATCH 1/1] =?utf8?q?jquery.lazyload=20przestaje=20sprawdza=C4=87?= =?utf8?q?=20scrollTop,=20je=C5=BCeli=20element=20nie=20ma=20atrybutu=20'l?= =?utf8?q?azyload:lastCheckedScrollTop'.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- project/static/js/jquery.lazyload.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/project/static/js/jquery.lazyload.js b/project/static/js/jquery.lazyload.js index 522250ff..50a183ec 100644 --- a/project/static/js/jquery.lazyload.js +++ b/project/static/js/jquery.lazyload.js @@ -23,6 +23,10 @@ } function checkScroll() { + console.log(checkScroll, container.data('lazyload:lastCheckedScrollTop')); + if (container.data('lazyload:lastCheckedScrollTop') == undefined) { + return; + } if (Math.abs(container.scrollTop() - container.data('lazyload:lastCheckedScrollTop')) > settings.scrollThreshold) { container.data('lazyload:lastCheckedScrollTop', container.scrollTop()); -- 2.20.1