From 5b831e78a79dba6f8dbea91c0cc2ba0b9253eb15 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Fri, 7 Aug 2015 10:54:13 -0400 Subject: Changed sidebar scroll handler to use React's onScroll --- web/react/components/sidebar.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'web/react') diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx index 82a14915c..5ce9e5d02 100644 --- a/web/react/components/sidebar.jsx +++ b/web/react/components/sidebar.jsx @@ -133,16 +133,12 @@ module.exports = React.createClass({ this.updateTitle(); this.updateUnreadIndicators(); - - $('.nav-pills__container').on('scroll', this.onScroll); }, componentDidUpdate: function() { this.updateTitle(); this.updateUnreadIndicators(); }, componentWillUnmount: function() { - $('.nav-pills__container').off('scroll', this.onScroll); - ChannelStore.removeChangeListener(this.onChange); UserStore.removeChangeListener(this.onChange); UserStore.removeStatusesChangeListener(this.onChange); @@ -416,7 +412,7 @@ module.exports = React.createClass({
Unread post(s) above
Unread post(s) below
-
+
  • Channels+

  • {channelItems} -- cgit v1.2.3-1-g7c22