multiple DataBoards with same key causes sync problems
This commit is contained in:
parent
fdcbb05f88
commit
5745ee6b0a
@ -15,7 +15,7 @@ ThreadWatcher =
|
|||||||
@list = @dialog.lastElementChild
|
@list = @dialog.lastElementChild
|
||||||
@refreshButton = $ '.move > .refresh', @dialog
|
@refreshButton = $ '.move > .refresh', @dialog
|
||||||
|
|
||||||
@unreaddb = new DataBoard 'lastReadPosts'
|
@unreaddb = Unread.db or new DataBoard 'lastReadPosts'
|
||||||
|
|
||||||
$.on d, 'QRPostSuccessful', @cb.post
|
$.on d, 'QRPostSuccessful', @cb.post
|
||||||
$.on sc, 'click', @toggleWatcher
|
$.on sc, 'click', @toggleWatcher
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Unread =
|
Unread =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW isnt 'thread' or !Conf['Unread Count'] and !Conf['Unread Favicon'] and !Conf['Desktop Notifications']
|
return if g.VIEW isnt 'thread' or !Conf['Unread Count'] and !Conf['Unread Favicon'] and !Conf['Desktop Notifications'] and !Conf['Show Unread Count']
|
||||||
|
|
||||||
@db = new DataBoard 'lastReadPosts', @sync
|
@db = new DataBoard 'lastReadPosts', @sync
|
||||||
@hr = $.el 'hr',
|
@hr = $.el 'hr',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user