소스 검색

Protect Ray against the closure circular reference bug

Tristan VALCKE 9 년 전
부모
커밋
682f968ca8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/math/Ray.js

+ 2 - 2
src/math/Ray.js

@@ -11,7 +11,7 @@ function Ray( origin, direction ) {
 
 
 }
 }
 
 
-Ray.prototype = {
+Object.assign( Ray.prototype, {
 
 
 	constructor: Ray,
 	constructor: Ray,
 
 
@@ -534,7 +534,7 @@ Ray.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
 
 
 
 
 export { Ray };
 export { Ray };

粤ICP备19079148号