Change const variable name

This commit is contained in:
John Furrow
2016-01-09 09:52:20 -08:00
parent 55c8dbaaad
commit a1945175b5
14 changed files with 30 additions and 31 deletions

View File

@@ -7,7 +7,7 @@ import format from '../../util/formatData';
import Icon from '../icons/Icon';
import LineChart from './LineChart';
const methodsToBind = [
const METHODS_TO_BIND = [
'onTransferDataRequestError',
'onTransferDataRequestSuccess'
];
@@ -22,7 +22,7 @@ class ClientStats extends React.Component {
transferDataRequestSuccess: false
};
methodsToBind.forEach((method) => {
METHODS_TO_BIND.forEach((method) => {
this[method] = this[method].bind(this);
});
}