fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be97b26
)
jquery.lazyload przestaje sprawdzać scrollTop, jeżeli element nie ma atrybutu 'lazylo...
author
zuber
<marek@stepniowski.com>
Sat, 22 Aug 2009 21:11:57 +0000
(23:11 +0200)
committer
zuber
<marek@stepniowski.com>
Sat, 22 Aug 2009 21:11:57 +0000
(23:11 +0200)
project/static/js/jquery.lazyload.js
patch
|
blob
|
history
diff --git
a/project/static/js/jquery.lazyload.js
b/project/static/js/jquery.lazyload.js
index
522250f
..
c15167b
100644
(file)
--- 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());