mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 06:05:15 +00:00
Change const variable name
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user