diff --git a/src/components/ContextMenuItem.js b/src/components/ContextMenuItem.js index 725401a06140..9d34fcf446d3 100644 --- a/src/components/ContextMenuItem.js +++ b/src/components/ContextMenuItem.js @@ -52,6 +52,9 @@ class ContextMenuItem extends Component { this.triggerPressAndUpdateSuccess = this.triggerPressAndUpdateSuccess.bind(this); } + /** + * Called on button press and mark the run + */ triggerPressAndUpdateSuccess() { if (this.props.isDelayButtonStateComplete) { return; diff --git a/src/components/HeaderWithCloseButton.js b/src/components/HeaderWithCloseButton.js index d5434ab16e82..8f8077098676 100755 --- a/src/components/HeaderWithCloseButton.js +++ b/src/components/HeaderWithCloseButton.js @@ -113,6 +113,9 @@ class HeaderWithCloseButton extends Component { this.triggerButtonCompleteAndDownload = this.triggerButtonCompleteAndDownload.bind(this); } + /** + * Called on download button press + */ triggerButtonCompleteAndDownload() { if (this.props.isDelayButtonStateComplete) { return; diff --git a/src/components/withDelayToggleButtonState.js b/src/components/withDelayToggleButtonState.js index 586bc566aba9..c312d18fba74 100644 --- a/src/components/withDelayToggleButtonState.js +++ b/src/components/withDelayToggleButtonState.js @@ -30,7 +30,7 @@ export default function (WrappedComponent) { } /** - * @param {Boolean} [resetAfterDelay] Impose delay before toggling state + * @param {Boolean} resetAfterDelay Impose delay before toggling state */ toggleDelayButtonState(resetAfterDelay) { this.setState({