From 108920c53620df4b19a889d037196b29f1bcb51c Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 27 Dec 2014 15:43:19 -0800 Subject: [PATCH] Don't try to update the read posts until all posts are parsed. --- src/Monitoring/Unread.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index c59979c5c..58632020b 100755 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -54,16 +54,16 @@ Unread = defaultValue: 0 Unread.readCount = 0 Unread.readCount++ for ID in @posts.keys when +ID <= Unread.lastReadPost - $.one d, '4chanXInitFinished', Unread.ready - $.on d, 'ThreadUpdate', Unread.onUpdate - $.on d, 'scroll visibilitychange', Unread.read - $.on d, 'visibilitychange', Unread.setLine if Conf['Unread Line'] + $.one d, '4chanXInitFinished', Unread.ready + $.on d, 'ThreadUpdate', Unread.onUpdate ready: -> Unread.setLine true Unread.read() Unread.update() Unread.scroll() if Conf['Scroll to Last Read Post'] + $.on d, 'scroll visibilitychange', Unread.read + $.on d, 'visibilitychange', Unread.setLine if Conf['Unread Line'] positionPrev: -> if Unread.position then Unread.position.prev else Unread.order.last