From 7fc1674a0d676e09cf718e0ad26098b79dd1784a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 30 Dec 2012 21:46:54 +0400 Subject: [PATCH] rework RCHK dupe checking a bit --- js/viewfeed.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 { -- 2.39.5