summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-08-03 18:48:28 +0400
committerAndrew Dolgov <[email protected]>2011-08-03 18:48:28 +0400
commit608cbde285663690112caae64775c06e818d417e (patch)
treef709b346b418736c106e22ea1a040ab2b381a710 /viewfeed.js
parent18eb64a8a1658c5c730fb81e3044ca6577b46192 (diff)
prototypize creation of headlines-spacer
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/viewfeed.js b/viewfeed.js
index 9d5af3adf..a4ac946a3 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -73,9 +73,7 @@ function headlines_callback2(transport, feed_cur_page) {
reply['headlines']['toolbar']);
var hsp = $("headlines-spacer");
- if (!hsp) hsp = document.createElement("DIV");
-
- hsp.id = "headlines-spacer";
+ if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
if (!_infscroll_disable)
hsp.innerHTML = "<img src='images/indicator_tiny.gif'> " +
@@ -103,9 +101,7 @@ function headlines_callback2(transport, feed_cur_page) {
c.domNode.appendChild(row);
});
- if (!hsp) hsp = document.createElement("DIV");
-
- hsp.id = "headlines-spacer";
+ if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
if (!_infscroll_disable)
hsp.innerHTML = "<img src='images/indicator_tiny.gif'> " +