From 0db3db2e3777f33064eb3601ac0dbcb3b64112dc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 31 Mar 2013 21:58:05 +0400 Subject: [PATCH] dismissArticle: check if target element exists --- js/viewfeed.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/viewfeed.js b/js/viewfeed.js index 27d0c01b..0ef89062 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1536,6 +1536,8 @@ function dismissArticle(id) { try { var elem = $("RROW-" + id); + if (!elem) return; + toggleUnread(id, 0, true); new Effect.Fade(elem, {duration : 0.5}); -- 2.39.5