From 6f00fbb75049fa32164d34a4d28a5073c1491c63 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 23 Jul 2011 19:23:26 -0700 Subject: [PATCH] use length --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 9cf45dfa5..0ffda93e0 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1649,8 +1649,8 @@ length = arr.length; updater.timer.textContent = '-' + conf['Interval']; if (conf['Verbose']) { - updater.count.textContent = '+' + arr.length; - if (arr.length === 0) { + updater.count.textContent = '+' + length; + if (length === 0) { updater.count.className = ''; } else { updater.count.className = 'new'; diff --git a/script.coffee b/script.coffee index 391b89cb0..2ed95abdc 100644 --- a/script.coffee +++ b/script.coffee @@ -1348,8 +1348,8 @@ updater = updater.timer.textContent = '-' + conf['Interval'] if conf['Verbose'] - updater.count.textContent = '+' + arr.length - if arr.length is 0 + updater.count.textContent = '+' + length + if length is 0 updater.count.className = '' else updater.count.className = 'new'