Browse Source

Protect Spherical against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
7261643da6
1 changed files with 2 additions and 2 deletions
  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 };