Skip to content

Commit 88c337e

Browse files
committed
fix(getanimationobject): bring back getAnimationObject
fix #16
1 parent 90c3892 commit 88c337e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export default class AnimateCC extends React.Component {
165165
}
166166

167167
handleComplete = (evt, comp) => {
168-
const { animationName, paused } = this.props;
168+
const { animationName, paused, getAnimationObject } = this.props;
169169

170170
const lib = comp.getLibrary();
171171

@@ -182,6 +182,7 @@ export default class AnimateCC extends React.Component {
182182
}
183183

184184
const exportRoot = new lib[animationName]();
185+
getAnimationObject(exportRoot);
185186

186187
this.lib = exportRoot;
187188
this.lib.tickEnabled = !paused;

0 commit comments

Comments
 (0)