clear _infscroll_timeout when headlines are loaded

master
Andrew Dolgov 6 years ago
parent f11933e1fe
commit 4b492cc93e

@ -372,6 +372,7 @@ const Feeds = {
Headlines.catchupBatchedArticles(() => { Headlines.catchupBatchedArticles(() => {
xhrPost("backend.php", query, (transport) => { xhrPost("backend.php", query, (transport) => {
try { try {
window.clearTimeout(this._infscroll_timeout);
this.setFeedExpandoIcon(feed, is_cat, 'images/blank_icon.gif'); this.setFeedExpandoIcon(feed, is_cat, 'images/blank_icon.gif');
Headlines.onLoaded(transport, offset); Headlines.onLoaded(transport, offset);
PluginHost.run(PluginHost.HOOK_FEED_LOADED, [feed, is_cat]); PluginHost.run(PluginHost.HOOK_FEED_LOADED, [feed, is_cat]);

Loading…
Cancel
Save