fix duplicate RCHK check while appending headlines

This commit is contained in:
Andrew Dolgov 2012-12-27 13:21:32 +04:00
parent b0ec17ea3c
commit 61261e45b9

View file

@ -162,9 +162,9 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
initHeadlinesMenu(); initHeadlinesMenu();
new_elems.each(function(child) { new_elems.each(function(child) {
if (dijit.byId("RCHK-" + child.id)) { var cb = dijit.byId(child.id.replace("RROW-", "RCHK-"));
dijit.byId("RCHK-" + child.id).destroy();
} if (cb) cb.destroy();
dojo.parser.parse(child); dojo.parser.parse(child);