From ff4c0a9acfa464db3b32edd07f784e00406303b5 Mon Sep 17 00:00:00 2001 From: zuber Date: Thu, 20 Aug 2009 00:16:27 +0200 Subject: [PATCH] Dodanie namespace do danych zapisywanych przez jquery.lazyload.js. --- project/static/js/jquery.lazyload.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/static/js/jquery.lazyload.js b/project/static/js/jquery.lazyload.js index ea3de6ff..522250ff 100644 --- a/project/static/js/jquery.lazyload.js +++ b/project/static/js/jquery.lazyload.js @@ -12,7 +12,7 @@ } var container = this; - container.data('lastScroll', -10000); + container.data('lazyload:lastCheckedScrollTop', -10000); function aboveViewport(container, element, threshold) { return $(container).offset().top >= $(element).offset().top + $(element).height() + threshold; @@ -23,8 +23,8 @@ } function checkScroll() { - if (Math.abs(container.scrollTop() - container.data('lastScroll')) > settings.scrollThreshold) { - container.data('lastScroll', container.scrollTop()); + if (Math.abs(container.scrollTop() - container.data('lazyload:lastCheckedScrollTop')) > settings.scrollThreshold) { + container.data('lazyload:lastCheckedScrollTop', container.scrollTop()); $(pattern, container).each(function() { if (aboveViewport(container, this, settings.threshold) -- 2.20.1