s/that/self/g
This commit is contained in:
parent
0d34728190
commit
10cdf46c2c
10 changed files with 83 additions and 38 deletions
|
@ -100,16 +100,16 @@ module.exports = {
|
|||
},
|
||||
|
||||
makeRoomTiles: function() {
|
||||
var that = this;
|
||||
var self = this;
|
||||
return this.state.roomList.map(function(room) {
|
||||
var selected = room.roomId == that.props.selectedRoom;
|
||||
var selected = room.roomId == self.props.selectedRoom;
|
||||
return (
|
||||
<RoomTile
|
||||
room={room}
|
||||
key={room.roomId}
|
||||
selected={selected}
|
||||
unread={that.state.activityMap[room.roomId] === 1}
|
||||
highlight={that.state.activityMap[room.roomId] === 2}
|
||||
unread={self.state.activityMap[room.roomId] === 1}
|
||||
highlight={self.state.activityMap[room.roomId] === 2}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue