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:
@@ -8,7 +8,7 @@ import TorrentFilterStore from '../../stores/TorrentFilterStore';
|
||||
import TorrentStore from '../../stores/TorrentStore';
|
||||
import UIActions from '../../actions/UIActions';
|
||||
|
||||
const methodsToBind = [
|
||||
const METHODS_TO_BIND = [
|
||||
'handleAddTorrents',
|
||||
'handleSortChange',
|
||||
'handleStart',
|
||||
@@ -24,7 +24,7 @@ export default class ActionBar extends React.Component {
|
||||
sortBy: TorrentFilterStore.getTorrentsSort()
|
||||
};
|
||||
|
||||
methodsToBind.forEach((method) => {
|
||||
METHODS_TO_BIND.forEach((method) => {
|
||||
this[method] = this[method].bind(this);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user