From f221b09f631744bae28834c73cee6a34f5cb6962 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 27 Dec 2011 21:16:45 +0100 Subject: [PATCH] Twice faster and shorter. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a0975a19a..539b321a0 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -972,7 +972,7 @@ } break; case conf.unreadCountTo0: - unread.replies.length = 0; + unread.replies = []; unread.updateTitle(); Favicon.update(); break; diff --git a/script.coffee b/script.coffee index ab4dfa06b..0999439f6 100644 --- a/script.coffee +++ b/script.coffee @@ -709,7 +709,7 @@ keybinds = else $('.postarea form').submit() when conf.unreadCountTo0 - unread.replies.length = 0 + unread.replies = [] unread.updateTitle() Favicon.update() else