瀏覽代碼

Protect Raycaster against the closure circular reference bug

Tristan VALCKE 9 年之前
父節點
當前提交
b927bc59d1
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/core/Raycaster.js

+ 2 - 4
src/core/Raycaster.js

@@ -59,9 +59,7 @@ function intersectObject( object, raycaster, intersects, recursive ) {
 
 }
 
-//
-
-Raycaster.prototype = {
+Object.assign( Raycaster.prototype, {
 
 	constructor: Raycaster,
 
@@ -130,7 +128,7 @@ Raycaster.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Raycaster };

粤ICP备19079148号