From 0f8f8c4249a74e5855286086a0dbfed03de3bca0 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Thu, 21 Feb 2008 09:11:34 +0000 Subject: [PATCH] "WFS layer format cannot be modified on the map". Concatenate EVENT_TYPES with specific class prototype instead of this.EVENT_TYPES. r=tschaub (closes #1361) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6337 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Vector.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Vector.js b/lib/OpenLayers/Layer/Vector.js index 4db49fbf15..ee7137808a 100644 --- a/lib/OpenLayers/Layer/Vector.js +++ b/lib/OpenLayers/Layer/Vector.js @@ -150,7 +150,8 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, { initialize: function(name, options) { // concatenate events specific to vector with those from the base - this.EVENT_TYPES = this.EVENT_TYPES.concat( + this.EVENT_TYPES = + OpenLayers.Layer.Vector.prototype.EVENT_TYPES.concat( OpenLayers.Layer.prototype.EVENT_TYPES );