"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
This commit is contained in:
ahocevar
2008-02-21 09:11:34 +00:00
parent f34358f1b9
commit 0f8f8c4249

View File

@@ -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
);