Explorar o código

Protect Ray against the closure circular reference bug

Tristan VALCKE %!s(int64=9) %!d(string=hai) anos
pai
achega
682f968ca8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 };