s/that/self/g
This commit is contained in:
parent
0d34728190
commit
10cdf46c2c
10 changed files with 83 additions and 38 deletions
|
@ -41,11 +41,11 @@ module.exports = {
|
|||
},
|
||||
|
||||
componentDidMount: function() {
|
||||
var that = this;
|
||||
var self = this;
|
||||
setTimeout(function() {
|
||||
if (!that.isMounted()) return;
|
||||
that.setState({
|
||||
memberDict: that.roomMembers()
|
||||
if (!self.isMounted()) return;
|
||||
self.setState({
|
||||
memberDict: self.roomMembers()
|
||||
});
|
||||
}, 50);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue