From 61261e45b90f6d0582cd338a1a3c9cf0c8a599ce Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 27 Dec 2012 13:21:32 +0400 Subject: [PATCH] fix duplicate RCHK check while appending headlines --- js/viewfeed.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index b839dfd6..641d931e 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -162,9 +162,9 @@ function headlines_callback2(transport, offset, background, infscroll_req) { initHeadlinesMenu(); new_elems.each(function(child) { - if (dijit.byId("RCHK-" + child.id)) { - dijit.byId("RCHK-" + child.id).destroy(); - } + var cb = dijit.byId(child.id.replace("RROW-", "RCHK-")); + + if (cb) cb.destroy(); dojo.parser.parse(child); -- 2.39.5