From 271c944c8fd5e96945ac936c5cb10f086ffab9b6 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Mon, 18 Aug 2014 18:01:42 -0700 Subject: [PATCH] Small change. --- builds/appchan-x.user.js | 3 ++- builds/crx/script.js | 3 ++- src/Monitoring/Unread.coffee | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index b3209a349..8a4b669fe 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -12899,7 +12899,8 @@ return; } Unread.db.disconnect(); - if (hr = Unread.hr, Unread) { + hr = Unread.hr; + if (hr) { $.rm(hr); } _ref = ['db', 'hr', 'posts', 'postsQuotingYou', 'thread', 'title']; diff --git a/builds/crx/script.js b/builds/crx/script.js index e1972019b..27d7977e3 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -12905,7 +12905,8 @@ return; } Unread.db.disconnect(); - if (hr = Unread.hr, Unread) { + hr = Unread.hr; + if (hr) { $.rm(hr); } _ref = ['db', 'hr', 'posts', 'postsQuotingYou', 'thread', 'title']; diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index 88e021cfb..594a923dc 100755 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -16,7 +16,8 @@ Unread = return if g.VIEW isnt 'thread' or !Conf['Unread Count'] and !Conf['Unread Favicon'] and !Conf['Desktop Notifications'] Unread.db.disconnect() - $.rm hr if {hr} = Unread + {hr} = Unread + $.rm hr if hr delete @[name] for name in ['db', 'hr', 'posts', 'postsQuotingYou', 'thread', 'title'] @lastReadPost = 0