Explorar el Código

Protect Layers against the closure circular reference bug

Tristan VALCKE hace 9 años
padre
commit
b01785367c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 };

粤ICP备19079148号