summaryrefslogtreecommitdiff
path: root/js/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-07-12 13:30:00 +0300
committerAndrew Dolgov <[email protected]>2015-07-12 13:30:00 +0300
commit15ae8cd0844b5beaee016ac769ec215adc0b4959 (patch)
tree031ba7f4121b6e028057f28c2317fb09093f84c5 /js/viewfeed.js
parent96ac72bc12ab0f5a79c48b2542d4a20088d87f0a (diff)
js: remove current_top_id global
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r--js/viewfeed.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index b4bf69a7e..5c437c7b8 100644
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -13,7 +13,6 @@ var catchup_timeout_id = false;
var cids_requested = [];
var loaded_article_ids = [];
var _last_headlines_update = 0;
-var current_top_article_id = false;
var has_storage = 'sessionStorage' in window && window['sessionStorage'] !== null;
@@ -84,7 +83,6 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
if (infscroll_req == false) {
loaded_article_ids = [];
- current_top_article_id = false;
dijit.byId("headlines-frame").attr('content',
reply['headlines']['content']);
@@ -104,10 +102,6 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
}
});
- if (loaded_article_ids.size() > 0) {
- current_top_article_id = parseInt(loaded_article_ids[0].replace("RROW-", ""));
- }
-
var hsp = $("headlines-spacer");
if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
dijit.byId('headlines-frame').domNode.appendChild(hsp);