Bug 1456857 - Part 2: Refer to proper props. r?gl draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Tue, 22 May 2018 17:09:07 +0900
changeset 797970 c9e335cddbf92410efbed3833ba7302521af9677
parent 797969 f07f6c63f27b705df4544ce0f9c6abb36b36ab13
child 797971 22e00d175c4ca42348900a89baeb938c042d1295
push id110652
push userbmo:dakatsuka@mozilla.com
push dateTue, 22 May 2018 08:13:26 +0000
reviewersgl
bugs1456857
milestone62.0a1
Bug 1456857 - Part 2: Refer to proper props. r?gl MozReview-Commit-ID: BSPo0ETx5JR
devtools/client/inspector/animation/components/PauseResumeButton.js
--- 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(