]> git.wh0rd.org Git - tt-rss.git/commitdiff
rework RCHK dupe checking a bit
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 30 Dec 2012 17:46:54 +0000 (21:46 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 30 Dec 2012 17:46:54 +0000 (21:46 +0400)
js/viewfeed.js

index 641d931e8557f4786b519ac8373294fca86a8cc9..225c12312be3c3091a8fb8353971268d0953ac95 100644 (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 {