Browse Source

Protect Raycaster against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
b927bc59d1
1 changed files with 2 additions and 4 deletions
  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 };