瀏覽代碼

Protect Line3 against the closure circular reference bug

Tristan VALCKE 9 年之前
父節點
當前提交
c579905317
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/math/Line3.js

+ 2 - 2
src/math/Line3.js

@@ -12,7 +12,7 @@ function Line3( start, end ) {
 
 }
 
-Line3.prototype = {
+Object.assign( Line3.prototype, {
 
 	constructor: Line3,
 
@@ -126,7 +126,7 @@ Line3.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Line3 };