Underscore for private method

This commit is contained in:
David Baker 2016-12-15 10:41:22 +00:00
parent f5bd8abfda
commit fc597ba86e
1 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ export default class NetworkDropdown extends React.Component {
</div>; </div>;
} }
protocolNameForInstanceId(instance_id) { _protocolNameForInstanceId(instance_id) {
for (const proto of Object.keys(this.props.protocols)) { for (const proto of Object.keys(this.props.protocols)) {
if (!this.props.protocols[proto].instances) continue; if (!this.props.protocols[proto].instances) continue;
for (const instance of this.props.protocols[proto].instances) { for (const instance of this.props.protocols[proto].instances) {
@ -286,7 +286,7 @@ export default class NetworkDropdown extends React.Component {
/> />
} else { } else {
if (this.state.selectedInstanceId) { if (this.state.selectedInstanceId) {
const protocolName = this.protocolNameForInstanceId(this.state.selectedInstanceId); const protocolName = this._protocolNameForInstanceId(this.state.selectedInstanceId);
const instance = this.instanceForInstanceId(this.state.selectedInstanceId); const instance = this.instanceForInstanceId(this.state.selectedInstanceId);
current_value = this._makeMenuOptionFromProtocolInstance( current_value = this._makeMenuOptionFromProtocolInstance(
this.state.selectedServer, this.props.protocols[protocolName], instance this.state.selectedServer, this.props.protocols[protocolName], instance