Browse Source

Protect Euler against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
317dbeb886
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/math/Euler.js

+ 2 - 2
src/math/Euler.js

@@ -22,7 +22,7 @@ Euler.RotationOrders = [ 'XYZ', 'YZX', 'ZXY', 'XZY', 'YXZ', 'ZYX' ];
 
 
 Euler.DefaultOrder = 'XYZ';
 Euler.DefaultOrder = 'XYZ';
 
 
-Euler.prototype = {
+Object.assign( Euler.prototype, {
 
 
 	constructor: Euler,
 	constructor: Euler,
 
 
@@ -330,7 +330,7 @@ Euler.prototype = {
 
 
 	onChangeCallback: function () {}
 	onChangeCallback: function () {}
 
 
-};
+} );
 
 
 
 
 export { Euler };
 export { Euler };