From 519335026f2a12dd1b9c49398b6381e204aea1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Fri, 9 Dec 2011 00:02:44 +0100 Subject: [PATCH] deprecate AnchoredBubble --- lib/OpenLayers/Popup/Anchored.js | 4 ++-- lib/OpenLayers/Popup/AnchoredBubble.js | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Popup/Anchored.js b/lib/OpenLayers/Popup/Anchored.js index f36c0d7a4a..4779f6b944 100644 --- a/lib/OpenLayers/Popup/Anchored.js +++ b/lib/OpenLayers/Popup/Anchored.js @@ -162,8 +162,8 @@ OpenLayers.Popup.Anchored = * * Note that in the classic Anchored popup, there is nothing to do * here, since the popup looks exactly the same in all four positions. - * Subclasses such as the AnchoredBubble and Framed, however, will - * want to do something special here. + * Subclasses such as Framed, however, will want to do something + * special here. */ updateRelativePosition: function() { //to be overridden by subclasses diff --git a/lib/OpenLayers/Popup/AnchoredBubble.js b/lib/OpenLayers/Popup/AnchoredBubble.js index 76e6dd2e1f..2f236d6947 100644 --- a/lib/OpenLayers/Popup/AnchoredBubble.js +++ b/lib/OpenLayers/Popup/AnchoredBubble.js @@ -6,11 +6,14 @@ /** * @requires OpenLayers/Popup/Anchored.js + * @requires OpenLayers/Console.js * @requires Rico/Corner.js */ /** * Class: OpenLayers.Popup.AnchoredBubble + * This class is *deprecated*. Use {} and + * round corners using CSS3's border-radius property. * * Inherits from: * - @@ -40,6 +43,8 @@ OpenLayers.Popup.AnchoredBubble = */ initialize:function(id, lonlat, contentSize, contentHTML, anchor, closeBox, closeBoxCallback) { + + OpenLayers.Console.warn('AnchoredBubble is deprecated'); this.padding = new OpenLayers.Bounds( 0, OpenLayers.Popup.AnchoredBubble.CORNER_SIZE,