Browse Source

Protect Layers against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
b01785367c
1 changed files with 2 additions and 2 deletions
  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,
 
@@ -42,7 +42,7 @@ Layers.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Layers };