commit | daee1b610502d77147479668c80a2ad64c0f9358 | [log] [tgz] |
---|---|---|
author | hernan <hernantorrisi@gmail.com> | Thu Jan 05 21:06:48 2017 -0300 |
committer | GitHub <noreply@github.com> | Thu Jan 05 21:06:48 2017 -0300 |
tree | e57318a0f51a72ed2b85127a23792aa120d2909f | |
parent | 9b2bbad1430052a6ad9e910ce0db25a3b75fbf3e [diff] | |
parent | df5f43cdce362ab896c5edd74a9493dfa3f1f5cb [diff] |
Merge pull request #212 from TomHoenderdos/fix_destroy_animationmanager bodymovin destroy fix
diff --git a/player/js/animation/AnimationManager.js b/player/js/animation/AnimationManager.js index 65e2bec..6f067d8 100644 --- a/player/js/animation/AnimationManager.js +++ b/player/js/animation/AnimationManager.js
@@ -144,7 +144,7 @@ function destroy(animation) { var i; - for(i=0;i<len;i+=1){ + for(i=(len-1);i>=0;i-=1){ registeredAnimations[i].animation.destroy(animation); } }