Unread count real performance improvement. Just like unread.scroll(e), don't update on every nodes.
This commit is contained in:
parent
7fabaa0659
commit
5f3167dc5b
@ -2656,7 +2656,9 @@
|
|||||||
}
|
}
|
||||||
unread.replies.push(root);
|
unread.replies.push(root);
|
||||||
unread.updateTitle();
|
unread.updateTitle();
|
||||||
|
if (unread.replies.length === 1) {
|
||||||
return Favicon.update();
|
return Favicon.update();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
scroll: function(e) {
|
scroll: function(e) {
|
||||||
var bottom, height, i, reply, _len, _ref;
|
var bottom, height, i, reply, _len, _ref;
|
||||||
|
|||||||
@ -1962,6 +1962,7 @@ 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()
|
||||||
|
if unread.replies.length is 1
|
||||||
Favicon.update()
|
Favicon.update()
|
||||||
|
|
||||||
scroll: (e) ->
|
scroll: (e) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user