Browse Source

Protect AnimationObjectGroup against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
ad6b18f469
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/animation/AnimationObjectGroup.js

+ 2 - 3
src/animation/AnimationObjectGroup.js

@@ -71,7 +71,7 @@ function AnimationObjectGroup( var_args ) {
 
 }
 
-AnimationObjectGroup.prototype = {
+Object.assign( AnimationObjectGroup.prototype, {
 
 	constructor: AnimationObjectGroup,
 
@@ -371,8 +371,7 @@ AnimationObjectGroup.prototype = {
 
 	}
 
-};
-
+} );
 
 
 export { AnimationObjectGroup };