2
0
Эх сурвалжийг харах

Protect AnimationObjectGroup against the closure circular reference bug

Tristan VALCKE 8 жил өмнө
parent
commit
ad6b18f469

+ 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 };