Use $.one in Unread.coffee.
This commit is contained in:
parent
f92fb4a1c4
commit
33d802d264
@ -27,13 +27,12 @@ Unread =
|
|||||||
boardID: @board.ID
|
boardID: @board.ID
|
||||||
threadID: @ID
|
threadID: @ID
|
||||||
defaultValue: 0
|
defaultValue: 0
|
||||||
$.on d, '4chanXInitFinished', Unread.ready
|
$.one d, '4chanXInitFinished', Unread.ready
|
||||||
$.on d, 'ThreadUpdate', Unread.onUpdate
|
$.on d, 'ThreadUpdate', Unread.onUpdate
|
||||||
$.on d, 'scroll visibilitychange', Unread.read
|
$.on d, 'scroll visibilitychange', Unread.read
|
||||||
$.on d, 'visibilitychange', Unread.setLine if Conf['Unread Line'] and not Conf['Quote Threading']
|
$.on d, 'visibilitychange', Unread.setLine if Conf['Unread Line'] and not Conf['Quote Threading']
|
||||||
|
|
||||||
ready: ->
|
ready: ->
|
||||||
$.off d, '4chanXInitFinished', Unread.ready
|
|
||||||
unless Conf['Quote Threading']
|
unless Conf['Quote Threading']
|
||||||
posts = []
|
posts = []
|
||||||
Unread.thread.posts.forEach (post) -> posts.push post if post.isReply
|
Unread.thread.posts.forEach (post) -> posts.push post if post.isReply
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user