فهرست منبع

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号