From 3f44628b44ef213c7875de36dbe08e61e482c215 Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 29 May 2006 08:48:54 +0000 Subject: [PATCH] give a feature a default, blank data git-svn-id: http://svn.openlayers.org/trunk/openlayers@437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Feature.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Feature.js b/lib/OpenLayers/Feature.js index 557e213082..516f7abc0c 100644 --- a/lib/OpenLayers/Feature.js +++ b/lib/OpenLayers/Feature.js @@ -39,7 +39,7 @@ OpenLayers.Feature.prototype= { initialize: function(layer, lonlat, data, id) { this.layer = layer; this.lonlat = lonlat; - this.data = data; + this.data = (data != null) ? data : new Object(); this.id = (id ? id : 'f'+Math.random()); },