Browse Source

Protect Ray against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
682f968ca8
1 changed files with 2 additions and 2 deletions
  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,
 
@@ -534,7 +534,7 @@ Ray.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Ray };