Browse Source

Protect AnimationAction against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
43eeb8d566
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/animation/AnimationAction.js

+ 2 - 2
src/animation/AnimationAction.js

@@ -76,7 +76,7 @@ function AnimationAction( mixer, clip, localRoot ) {
 
 }
 
-AnimationAction.prototype = {
+Object.assign( AnimationAction.prototype, {
 
 	constructor: AnimationAction,
 
@@ -651,7 +651,7 @@ AnimationAction.prototype = {
 
 	}
 
-};
+} );
 
 
 export { AnimationAction };