소스 검색

Protect Cylindrical against the closure circular reference bug

Tristan VALCKE 8 년 전
부모
커밋
780eb4d4e8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 };