From 938ff3829360599c35f09c889e0aaf0534a4c9d5 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 22 Feb 2013 00:11:37 +0100 Subject: [PATCH] @ -> Unread. --- 4chan_x.user.js | 8 ++++---- src/features.coffee | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 153363b23..5428c1b51 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -20,7 +20,7 @@ // @icon data:image/gif;base64,R0lGODlhEAAQAKECAAAAAGbMM////////yH5BAEKAAIALAAAAAAQABAAAAIxlI+pq+D9DAgUoFkPDlbs7lGiI2bSVnKglnJMOL6omczxVZK3dH/41AG6Lh7i6qUoAAA7 // ==/UserScript== -/* 4chan X Beta - Version 3.0.0 - 2013-02-21 +/* 4chan X Beta - Version 3.0.0 - 2013-02-22 * http://mayhemydg.github.com/4chan-x/ * * Copyright (c) 2009-2011 James Campos @@ -4937,9 +4937,9 @@ } Unread.addPosts(posts); Unread.update(); - $.on(d, 'ThreadUpdate', this.onUpdate); - $.on(d, 'QRPostSuccessful', this.post); - return $.on(d, 'scroll visibilitychange', this.read); + $.on(d, 'ThreadUpdate', Unread.onUpdate); + $.on(d, 'QRPostSuccessful', Unread.post); + return $.on(d, 'scroll visibilitychange', Unread.read); }, addPosts: function(newPosts) { var height, index, post, _i, _len; diff --git a/src/features.coffee b/src/features.coffee index 66a2691eb..e435ae854 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -3299,9 +3299,9 @@ Unread = posts.push post if post.isReply Unread.addPosts posts Unread.update() - $.on d, 'ThreadUpdate', @onUpdate - $.on d, 'QRPostSuccessful', @post - $.on d, 'scroll visibilitychange', @read + $.on d, 'ThreadUpdate', Unread.onUpdate + $.on d, 'QRPostSuccessful', Unread.post + $.on d, 'scroll visibilitychange', Unread.read addPosts: (newPosts) -> unless d.hidden