From: Andrew Dolgov Date: Wed, 3 Aug 2011 14:48:28 +0000 (+0400) Subject: prototypize creation of headlines-spacer X-Git-Tag: 1.5.6~67 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=608cbde285663690112caae64775c06e818d417e;p=tt-rss.git prototypize creation of headlines-spacer --- diff --git a/viewfeed.js b/viewfeed.js index 9d5af3ad..a4ac946a 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 = " " + @@ -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 = " " +