浏览代码

Protect Face3 against the closure circular reference bug

Tristan VALCKE 8 年之前
父节点
当前提交
c4cb581786
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 };