From 3d36b15a04d228e79c4c1722a3545eaa14a9fa81 Mon Sep 17 00:00:00 2001 From: zuber Date: Sat, 22 Aug 2009 23:11:57 +0200 Subject: [PATCH] =?utf8?q?jquery.lazyload=20przestaje=20sprawdza=C4=87=20s?= =?utf8?q?crollTop,=20je=C5=BCeli=20element=20nie=20ma=20atrybutu=20'lazyl?= =?utf8?q?oad:lastCheckedScrollTop'.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- project/static/js/jquery.lazyload.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/project/static/js/jquery.lazyload.js b/project/static/js/jquery.lazyload.js index 522250ff..c15167bd 100644 --- 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()); -- 2.20.1