summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-30 21:46:54 +0400
committerAndrew Dolgov <[email protected]>2012-12-30 21:46:54 +0400
commit7fc1674a0d676e09cf718e0ad26098b79dd1784a (patch)
treedf6d20c39703c6995dbb4731115b74384ac32014
parent43f775de05227a6dc088655fbe5eb59edb90a648 (diff)
rework RCHK dupe checking a bit
-rw-r--r--js/viewfeed.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index 641d931e8..225c12312 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 {