浏览代码

Protect Spherical against the closure circular reference bug

Tristan VALCKE 9 年之前
父节点
当前提交
7261643da6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/math/Spherical.js

+ 2 - 2
src/math/Spherical.js

@@ -20,7 +20,7 @@ function Spherical( radius, phi, theta ) {
 
 }
 
-Spherical.prototype = {
+Object.assign( Spherical.prototype, {
 
 	constructor: Spherical,
 
@@ -80,7 +80,7 @@ Spherical.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Spherical };