Bug 1456857 - Part 2: Refer to proper props. r?gl
MozReview-Commit-ID: BSPo0ETx5JR
--- a/devtools/client/inspector/animation/components/PauseResumeButton.js
+++ b/devtools/client/inspector/animation/components/PauseResumeButton.js
@@ -63,18 +63,18 @@ class PauseResumeButton extends PureComp
}
onKeyDown(event) {
if (event.keyCode === KeyCodes.DOM_VK_SPACE) {
this.onToggleAnimationsPlayState(event);
}
}
- updateState() {
- const { animations } = this.props;
+ updateState(props) {
+ const { animations } = props;
const isRunning = hasRunningAnimation(animations);
this.setState({ isRunning });
}
render() {
const { isRunning } = this.state;
return dom.button(