Просмотр исходного кода

Protect InterleavedBufferAttribute against the closure circular reference bug

Tristan VALCKE 9 лет назад
Родитель
Сommit
494b7efa4d
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/core/InterleavedBufferAttribute.js

+ 2 - 3
src/core/InterleavedBufferAttribute.js

@@ -16,8 +16,7 @@ function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normal
 
 }
 
-
-InterleavedBufferAttribute.prototype = {
+Object.assign( InterleavedBufferAttribute.prototype, {
 
 	constructor: InterleavedBufferAttribute,
 
@@ -127,7 +126,7 @@ InterleavedBufferAttribute.prototype = {
 
 	}
 
-};
+} );
 
 
 export { InterleavedBufferAttribute };

粤ICP备19079148号