Sprawdzanie pustych grup.
[redakcja.git] / project / static / js / jquery.lazyload.js
old mode 100644 (file)
new mode 100755 (executable)
index 522250f..c15167b
@@ -23,6 +23,9 @@
         }
         
         function checkScroll() {
         }
         
         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());
                 
             if (Math.abs(container.scrollTop() - container.data('lazyload:lastCheckedScrollTop')) > settings.scrollThreshold) {
                 container.data('lazyload:lastCheckedScrollTop', container.scrollTop());