فهرست منبع

Protect IntereavedBuffer against the closure circular reference bug

Tristan VALCKE 9 سال پیش
والد
کامیت
48de0f393d
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/core/InterleavedBuffer.js

+ 2 - 2
src/core/InterleavedBuffer.js

@@ -21,7 +21,7 @@ function InterleavedBuffer( array, stride ) {
 
 }
 
-InterleavedBuffer.prototype = {
+Object.assign( InterleavedBuffer.prototype, {
 
 	constructor: InterleavedBuffer,
 
@@ -104,7 +104,7 @@ InterleavedBuffer.prototype = {
 
 	}
 
-};
+} );
 
 
 export { InterleavedBuffer };

粤ICP备19079148号