diff --git a/lib/OpenLayers/Feature.js b/lib/OpenLayers/Feature.js index f921bc4325..bd3c50f6f1 100644 --- a/lib/OpenLayers/Feature.js +++ b/lib/OpenLayers/Feature.js @@ -49,7 +49,7 @@ OpenLayers.Feature = OpenLayers.Class({ /** * APIProperty: popupClass * {} The class which will be used to instantiate - * a new Popup. Default is . + * a new Popup. Default is . */ popupClass: null, @@ -188,7 +188,7 @@ OpenLayers.Feature = OpenLayers.Class({ if (!this.popup) { var anchor = (this.marker) ? this.marker.icon : null; var popupClass = this.popupClass ? - this.popupClass : OpenLayers.Popup.AnchoredBubble; + this.popupClass : OpenLayers.Popup.Anchored; this.popup = new popupClass(this.id + "_popup", this.lonlat, this.data.popupSize, diff --git a/tests/Feature.html b/tests/Feature.html index 688642f4f5..4a50d5143a 100644 --- a/tests/Feature.html +++ b/tests/Feature.html @@ -44,7 +44,7 @@ //Safari 3 separates style overflow into overflow-x and overflow-y var prop = (OpenLayers.BROWSER_NAME == 'safari') ? 'overflowX' : 'overflow'; t.eq(popup.contentDiv.style[prop], "auto", 'overflow on popup is correct'); - t.ok( popup instanceof OpenLayers.Popup.AnchoredBubble, "popup is an AnchoredBubble by defaults"); + t.ok( popup instanceof OpenLayers.Popup.Anchored, "popup is a Popup.Anchored by default"); feature.destroyPopup(); feature.popupClass = OpenLayers.Popup.FramedCloud;