Twice faster and shorter.

This commit is contained in:
Nicolas Stepien 2011-12-27 21:16:45 +01:00
parent 691395b627
commit f221b09f63
2 changed files with 2 additions and 2 deletions

View File

@ -972,7 +972,7 @@
} }
break; break;
case conf.unreadCountTo0: case conf.unreadCountTo0:
unread.replies.length = 0; unread.replies = [];
unread.updateTitle(); unread.updateTitle();
Favicon.update(); Favicon.update();
break; break;

View File

@ -709,7 +709,7 @@ keybinds =
else else
$('.postarea form').submit() $('.postarea form').submit()
when conf.unreadCountTo0 when conf.unreadCountTo0
unread.replies.length = 0 unread.replies = []
unread.updateTitle() unread.updateTitle()
Favicon.update() Favicon.update()
else else