From dba48e2f8f7abadbd5f549babb9ff10766c227be Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 22 Sep 2017 15:07:45 +0100 Subject: [PATCH] use start, end rather than min, max --- src/components/views/elements/TruncatedList.js | 6 +++--- src/components/views/rooms/MemberList.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/views/elements/TruncatedList.js b/src/components/views/elements/TruncatedList.js index 02710bb3cc..1e955149d7 100644 --- a/src/components/views/elements/TruncatedList.js +++ b/src/components/views/elements/TruncatedList.js @@ -53,16 +53,16 @@ module.exports = React.createClass({ }; }, - _getChildren: function(min, max) { + _getChildren: function(start, end) { if (this.props.getChildren && this.props.getChildCount) { - return this.props.getChildren(min, max); + return this.props.getChildren(start, end); } else { // XXX: I'm not sure why anything would pass null into this, it seems // like a bizzare case to handle, but I'm preserving the behaviour. // (see commit 38d5c7d5c5d5a34dc16ef5d46278315f5c57f542) return React.Children.toArray(this.props.children).filter((c) => { return c != null; - }).slice(min, max); + }).slice(start, end); } }, diff --git a/src/components/views/rooms/MemberList.js b/src/components/views/rooms/MemberList.js index 9c75e2d052..9d22d9e9ec 100644 --- a/src/components/views/rooms/MemberList.js +++ b/src/components/views/rooms/MemberList.js @@ -356,8 +356,8 @@ module.exports = React.createClass({ return memberList; }, - _getChildrenJoined: function(min, max) { - return this._makeMemberTiles(this.state.filteredJoinedMembers.slice(min, max)); + _getChildrenJoined: function(start, end) { + return this._makeMemberTiles(this.state.filteredJoinedMembers.slice(start, end)); }, _getChildCountJoined: function() {