diff options
author | Andrew Dolgov <[email protected]> | 2013-04-06 13:01:34 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-06 13:01:34 +0400 |
commit | 86baa14acaf932222952e0c7d4fbd123cb257474 (patch) | |
tree | 85d1ee494daffe6c058d065b2e75f298e07cc091 /js | |
parent | 2b28c8f2da94c5cac2aacf13d83d370df11f29f3 (diff) |
check for headlines-spacer presence before querying infscroll on load
Diffstat (limited to 'js')
-rw-r--r-- | js/viewfeed.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index 77ec5ce06..108d27ea4 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -212,8 +212,8 @@ function headlines_callback2(transport, offset, background, infscroll_req) { // if we have some more space in the buffer, why not try to fill it - if (!_infscroll_disable && $("headlines-spacer").offsetTop < - $("headlines-frame").offsetHeight) { + if (!_infscroll_disable && $("headlines-spacer") && + $("headlines-spacer").offsetTop < $("headlines-frame").offsetHeight) { window.setTimeout(function() { loadMoreHeadlines(); |