From 602d0c7ef6b3e0c0db17e658dfa8c692dff7073e Mon Sep 17 00:00:00 2001 From: kukukikits Date: Thu, 18 Nov 2021 18:57:38 +0800 Subject: [PATCH] Update index.js bind pauseAnimation to this scope --- components/animation-timeline/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/animation-timeline/index.js b/components/animation-timeline/index.js index 00bbf987..8ff7c754 100644 --- a/components/animation-timeline/index.js +++ b/components/animation-timeline/index.js @@ -27,6 +27,7 @@ AFRAME.registerComponent('animation-timeline', { this.animationIsPlaying = false; this.beginAnimation = this.beginAnimation.bind(this); + this.pauseAnimation = this.pauseAnimation.bind(this); this.eventDetail = {name: this.id} this.time = 0; this.timeline = null;