use length

This commit is contained in:
James Campos 2011-07-23 19:23:26 -07:00
parent ec5ccc153e
commit 6f00fbb750
2 changed files with 4 additions and 4 deletions

View File

@ -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';

View File

@ -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'