fix unread count

ugh, I want to change the callback system
This commit is contained in:
James Campos 2010-12-28 11:57:18 -08:00
parent 3841b28ad1
commit 94dd31335f
2 changed files with 2 additions and 2 deletions

View File

@ -1322,7 +1322,7 @@ if getConfig 'Unread Count'
document.title = '(0) ' + document.title document.title = '(0) ' + document.title
document.addEventListener 'scroll', scroll, true document.addEventListener 'scroll', scroll, true
g.callbacks.push (root) -> g.callbacks.push (root) ->
g.replies.push $$ 'td.reply, td.replyhl', root g.replies = g.replies.concat $$ 'td.reply, td.replyhl', root
scroll() scroll()
callback() for callback in g.callbacks callback() for callback in g.callbacks

View File

@ -1689,7 +1689,7 @@
document.title = '(0) ' + document.title; document.title = '(0) ' + document.title;
document.addEventListener('scroll', scroll, true); document.addEventListener('scroll', scroll, true);
g.callbacks.push(function(root) { 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(); return scroll();
}); });
} }