clear _infscroll_timeout when headlines are loaded

This commit is contained in:
Andrew Dolgov 2018-12-01 22:24:30 +03:00
parent f11933e1fe
commit 4b492cc93e
1 changed files with 1 additions and 0 deletions

View File

@ -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]);