浏览代码

Protect AnimationAction against the closure circular reference bug

Tristan VALCKE 8 年之前
父节点
当前提交
43eeb8d566
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 };