Просмотр исходного кода

Protect Vector3 against the closure circular reference bug

Tristan VALCKE 9 лет назад
Родитель
Сommit
901e01c24e
1 измененных файлов с 2 добавлено и 2 удалено
  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,
 
@@ -760,7 +760,7 @@ Vector3.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Vector3 };

粤ICP备19079148号