浏览代码

Protect Layers against the closure circular reference bug

Tristan VALCKE 9 年之前
父节点
当前提交
b01785367c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/core/Layers.js

+ 2 - 2
src/core/Layers.js

@@ -8,7 +8,7 @@ function Layers() {
 
 
 }
 }
 
 
-Layers.prototype = {
+Object.assign( Layers.prototype, {
 
 
 	constructor: Layers,
 	constructor: Layers,
 
 
@@ -42,7 +42,7 @@ Layers.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
 
 
 
 
 export { Layers };
 export { Layers };