diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index dcf74c7aa0..b0995ea55e 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -174,7 +174,7 @@ OpenLayers.Layer.prototype = { OpenLayers.Util.extend(this.options, newOptions); // add new options to this - OpenLayers.Util.extend(this, this.options); + OpenLayers.Util.extend(this, newOptions); }, /**