summaryrefslogtreecommitdiffstats
path: root/web/react/components/user_settings_security.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-09-02 14:26:01 -0400
committerJoramWilander <jwawilander@gmail.com>2015-09-02 14:26:01 -0400
commitb9e16f41f161c772e1701c4ac47ca5319c706912 (patch)
tree0a03bc0d32dddbd7ceb192199b06013d434ec775 /web/react/components/user_settings_security.jsx
parent86b474666ca0f25af2ddb808fc618517292e865a (diff)
downloadchat-b9e16f41f161c772e1701c4ac47ca5319c706912.tar.gz
chat-b9e16f41f161c772e1701c4ac47ca5319c706912.tar.bz2
chat-b9e16f41f161c772e1701c4ac47ca5319c706912.zip
Remove use of getDOMNode from multiple files.
Diffstat (limited to 'web/react/components/user_settings_security.jsx')
-rw-r--r--web/react/components/user_settings_security.jsx11
1 files changed, 5 insertions, 6 deletions
diff --git a/web/react/components/user_settings_security.jsx b/web/react/components/user_settings_security.jsx
index 82828743e..a9f62097a 100644
--- a/web/react/components/user_settings_security.jsx
+++ b/web/react/components/user_settings_security.jsx
@@ -107,7 +107,6 @@ export default class SecurityTab extends React.Component {
var updateSectionStatus;
var passwordSection;
- var self = this;
if (this.props.activeSection === 'password') {
var inputs = [];
var submit = null;
@@ -163,10 +162,10 @@ export default class SecurityTab extends React.Component {
}
updateSectionStatus = function resetSection(e) {
- self.props.updateSection('');
- self.setState({currentPassword: '', newPassword: '', confirmPassword: '', serverError: null, passwordError: null});
+ this.props.updateSection('');
+ this.setState({currentPassword: '', newPassword: '', confirmPassword: '', serverError: null, passwordError: null});
e.preventDefault();
- };
+ }.bind(this);
passwordSection = (
<SettingItemMax
@@ -201,8 +200,8 @@ export default class SecurityTab extends React.Component {
}
updateSectionStatus = function updateSection() {
- self.props.updateSection('password');
- };
+ this.props.updateSection('password');
+ }.bind(this);
passwordSection = (
<SettingItemMin