Merge pull request #323 from MayhemYDG/master

Unread count performance fix; changelog.
This commit is contained in:
James Campos 2011-10-10 16:46:54 -07:00
commit 544aecb87e
3 changed files with 8 additions and 3 deletions

View File

@ -2656,7 +2656,9 @@
} }
unread.replies.push(root); unread.replies.push(root);
unread.updateTitle(); unread.updateTitle();
return Favicon.update(); if (unread.replies.length === 1) {
return Favicon.update();
}
}, },
scroll: function(e) { scroll: function(e) {
var bottom, height, i, reply, _len, _ref; var bottom, height, i, reply, _len, _ref;

View File

@ -3,7 +3,9 @@ master
initiate 4chan X earlier initiate 4chan X earlier
automatically reload expanded pictures on error automatically reload expanded pictures on error
update /sci/ archive redirection update /sci/ archive redirection
Regular expressions based filter regular expressions based filter
handle bans with the thread updater
performance improvements
- aeosynth - aeosynth
quick reply redesign quick reply redesign

View File

@ -1962,7 +1962,8 @@ unread =
return if root.hidden or root.className return if root.hidden or root.className
unread.replies.push root unread.replies.push root
unread.updateTitle() unread.updateTitle()
Favicon.update() if unread.replies.length is 1
Favicon.update()
scroll: (e) -> scroll: (e) ->
updater.focus = true updater.focus = true