فهرست منبع

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,
 	constructor: Sphere,
 
 
@@ -176,7 +176,7 @@ Sphere.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
 
 
 
 
 export { Sphere };
 export { Sphere };