Browse Source

Protect Face3 against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
c4cb581786
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/Face3.js

+ 2 - 2
src/core/Face3.js

@@ -22,7 +22,7 @@ function Face3( a, b, c, normal, color, materialIndex ) {
 
 }
 
-Face3.prototype = {
+Object.assign( Face3.prototype, {
 
 	constructor: Face3,
 
@@ -59,7 +59,7 @@ Face3.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Face3 };