fix unread count
ugh, I want to change the callback system
This commit is contained in:
parent
3841b28ad1
commit
94dd31335f
@ -1322,7 +1322,7 @@ if getConfig 'Unread Count'
|
||||
document.title = '(0) ' + document.title
|
||||
document.addEventListener 'scroll', scroll, true
|
||||
g.callbacks.push (root) ->
|
||||
g.replies.push $$ 'td.reply, td.replyhl', root
|
||||
g.replies = g.replies.concat $$ 'td.reply, td.replyhl', root
|
||||
scroll()
|
||||
|
||||
callback() for callback in g.callbacks
|
||||
|
||||
@ -1689,7 +1689,7 @@
|
||||
document.title = '(0) ' + document.title;
|
||||
document.addEventListener('scroll', scroll, true);
|
||||
g.callbacks.push(function(root) {
|
||||
g.replies.push($$('td.reply, td.replyhl', root));
|
||||
g.replies = g.replies.concat($$('td.reply, td.replyhl', root));
|
||||
return scroll();
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user