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

@@ -5,7 +5,7 @@ import React from 'react';
import TextboxRepeater from '../forms/TextboxRepeater';
import TorrentActions from '../../actions/TorrentActions';
const methodsToBind = [
const METHODS_TO_BIND = [
'getContent',
'handleDestinationChange',
'handleUrlAdd',
@@ -24,7 +24,7 @@ export default class AddTorrents extends React.Component {
urlTextboxes: [{value: null}]
};
methodsToBind.forEach((method) => {
METHODS_TO_BIND.forEach((method) => {
this[method] = this[method].bind(this);
});
}