Browse Source

Protect Cylindrical against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
780eb4d4e8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/math/Cylindrical.js

+ 2 - 2
src/math/Cylindrical.js

@@ -15,7 +15,7 @@ function Cylindrical( radius, theta, y ) {
 
 }
 
-Cylindrical.prototype = {
+Object.assign( Cylindrical.prototype, {
 
 	constructor: Cylindrical,
 
@@ -55,7 +55,7 @@ Cylindrical.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Cylindrical };