Skip to content

Commit

Permalink
fix(getanimationobject): bring back getAnimationObject
Browse files Browse the repository at this point in the history
fix #16
  • Loading branch information
bibixx committed Oct 4, 2019
1 parent 90c3892 commit 88c337e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default class AnimateCC extends React.Component {
}

handleComplete = (evt, comp) => {
const { animationName, paused } = this.props;
const { animationName, paused, getAnimationObject } = this.props;

const lib = comp.getLibrary();

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

const exportRoot = new lib[animationName]();
getAnimationObject(exportRoot);

this.lib = exportRoot;
this.lib.tickEnabled = !paused;
Expand Down

0 comments on commit 88c337e

Please sign in to comment.