From 94dd31335f396290024eae7d3d2d494281b6614e Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 28 Dec 2010 11:57:18 -0800 Subject: [PATCH] fix unread count ugh, I want to change the callback system --- 4chan_x.coffee | 2 +- 4chan_x.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index 9ae2e2b84..d009bcebd 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -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 diff --git a/4chan_x.js b/4chan_x.js index ab408db7e..1b30c79e8 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -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(); }); }