diff --git a/lib/OpenLayers/Feature/Vector.js b/lib/OpenLayers/Feature/Vector.js index dd03caad56..4e6e9d6bf0 100644 --- a/lib/OpenLayers/Feature/Vector.js +++ b/lib/OpenLayers/Feature/Vector.js @@ -27,10 +27,10 @@ OpenLayers.Feature.Vector.prototype = /** @type OpenLayers.Geometry */ geometry:null, - /** @type array */ - attributes: {}, + /** @type Object */ + attributes: null, - /** @type strinng */ + /** @type String */ state: null, /** @type Object */ @@ -48,9 +48,10 @@ OpenLayers.Feature.Vector.prototype = this.lonlat = null; this.geometry = geometry; this.state = null; + this.attributes = new Object(); if (data) { - OpenLayers.Util.extend(this.attributes, data); - } + this.attributes = OpenLayers.Util.extend(this.attributes, data); + } this.style = style ? style : null; },