Преглед на файлове

Protect Sphere against the closure circular reference bug

Tristan VALCKE преди 9 години
родител
ревизия
39d8d35a22
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/math/Sphere.js

+ 2 - 2
src/math/Sphere.js

@@ -13,7 +13,7 @@ function Sphere( center, radius ) {
 
 }
 
-Sphere.prototype = {
+Object.assign( Sphere.prototype, {
 
 	constructor: Sphere,
 
@@ -176,7 +176,7 @@ Sphere.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Sphere };