Unread count real performance improvement. Just like unread.scroll(e), don't update on every nodes.

This commit is contained in:
Nicolas Stepien 2011-10-11 01:27:07 +02:00
parent 7fabaa0659
commit 5f3167dc5b
2 changed files with 5 additions and 2 deletions

View File

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

View File

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