Skip to content

Commit

Permalink
deprecate AnchoredBubble
Browse files Browse the repository at this point in the history
  • Loading branch information
elemoine committed Dec 8, 2011
1 parent 5fda883 commit 5193350
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/OpenLayers/Popup/Anchored.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions lib/OpenLayers/Popup/AnchoredBubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {<OpenLayers.Popup.Anchored>} and
* round corners using CSS3's border-radius property.
*
* Inherits from:
* - <OpenLayers.Popup.Anchored>
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5193350

Please sign in to comment.