From: Andrew Dolgov Date: Sun, 30 Dec 2012 17:46:54 +0000 (+0400) Subject: rework RCHK dupe checking a bit X-Git-Tag: 1.7.0~74 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7fc1674a0d676e09cf718e0ad26098b79dd1784a;p=tt-rss.git rework RCHK dupe checking a bit --- diff --git a/js/viewfeed.js b/js/viewfeed.js index 641d931e..225c1231 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -164,12 +164,14 @@ function headlines_callback2(transport, offset, background, infscroll_req) { new_elems.each(function(child) { var cb = dijit.byId(child.id.replace("RROW-", "RCHK-")); - if (cb) cb.destroy(); + if (!cb) { + dojo.parser.parse(child); - dojo.parser.parse(child); - - if (!Element.visible(child)) - new Effect.Appear(child, { duration : 0.5 }); + if (!Element.visible(child)) + new Effect.Appear(child, { duration : 0.5 }); + } else { + c.domNode.removeChild(child); + } }); } else {