]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix duplicate RCHK check while appending headlines
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 27 Dec 2012 09:21:32 +0000 (13:21 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 27 Dec 2012 09:21:32 +0000 (13:21 +0400)
js/viewfeed.js

index b839dfd613823c74f9392b095d968e1dc8f7297f..641d931e8557f4786b519ac8373294fca86a8cc9 100644 (file)
@@ -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);