rework RCHK dupe checking a bit

This commit is contained in:
Andrew Dolgov 2012-12-30 21:46:54 +04:00
parent 43f775de05
commit 7fc1674a0d
1 changed files with 7 additions and 5 deletions

View File

@ -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 {