Fixed DC panel form. PersonListField was raising a TypeError.
[redakcja.git] / project / static / js / jquery.lazyload.js
index 522250f..c15167b 100644 (file)
@@ -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());