Browse Source

Protect Line3 against the closure circular reference bug

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