Przeglądaj źródła

Protect Vector3 against the closure circular reference bug

Tristan VALCKE 9 lat temu
rodzic
commit
901e01c24e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/math/Vector3.js

+ 2 - 2
src/math/Vector3.js

@@ -19,7 +19,7 @@ function Vector3( x, y, z ) {
 
 
 }
 }
 
 
-Vector3.prototype = {
+Object.assign( Vector3.prototype, {
 
 
 	constructor: Vector3,
 	constructor: Vector3,
 
 
@@ -760,7 +760,7 @@ Vector3.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
 
 
 
 
 export { Vector3 };
 export { Vector3 };

粤ICP备19079148号