mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 14:15: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);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import Icon from '../icons/Icon';
|
||||
import UIActions from '../../actions/UIActions';
|
||||
import UIStore from '../../stores/UIStore';
|
||||
|
||||
const methodsToBind = [
|
||||
const METHODS_TO_BIND = [
|
||||
'handleOverlayClick',
|
||||
'onModalChange'
|
||||
];
|
||||
@@ -20,7 +20,7 @@ export default class Modal extends React.Component {
|
||||
activeModal: null
|
||||
};
|
||||
|
||||
methodsToBind.forEach((method) => {
|
||||
METHODS_TO_BIND.forEach((method) => {
|
||||
this[method] = this[method].bind(this);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user