mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
third: Use Underscore throttle function instead of jQuery.
Since we already have _.js and it has this feature, there's no need for a separate library.
This commit is contained in:
committed by
Tim Abbott
parent
add59ee48d
commit
a781b89ec2
@@ -73,10 +73,10 @@ function scroll_finish() {
|
||||
}
|
||||
|
||||
exports.initialize = function () {
|
||||
message_viewport.message_pane.scroll($.throttle(50, function () {
|
||||
message_viewport.message_pane.scroll(_.throttle(function () {
|
||||
unread_ops.process_visible();
|
||||
scroll_finish();
|
||||
}));
|
||||
}, 50));
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user