coding standards -- mostly ND comment style corrections and lines longer than 79char
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4248 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -11,7 +11,8 @@
|
|||||||
* Inherits from:
|
* Inherits from:
|
||||||
* - <OpenLayers.Popup.Anchored>
|
* - <OpenLayers.Popup.Anchored>
|
||||||
*/
|
*/
|
||||||
OpenLayers.Popup.AnchoredBubble = OpenLayers.Class(OpenLayers.Popup.Anchored, {
|
OpenLayers.Popup.AnchoredBubble =
|
||||||
|
OpenLayers.Class(OpenLayers.Popup.Anchored, {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: rounded
|
* Property: rounded
|
||||||
@@ -29,7 +30,7 @@ OpenLayers.Popup.AnchoredBubble = OpenLayers.Class(OpenLayers.Popup.Anchored, {
|
|||||||
* contentHTML - {String}
|
* contentHTML - {String}
|
||||||
* anchor - {Object} Object to which we'll anchor the popup. Must expose
|
* anchor - {Object} Object to which we'll anchor the popup. Must expose
|
||||||
* a 'size' (<OpenLayers.Size>) and 'offset' (<OpenLayers.Pixel>)
|
* a 'size' (<OpenLayers.Size>) and 'offset' (<OpenLayers.Pixel>)
|
||||||
* (Note that this is generally an <OpenLayers.Icon>)
|
* (Note that this is generally an <OpenLayers.Icon>).
|
||||||
* closeBox - {Boolean}
|
* closeBox - {Boolean}
|
||||||
*/
|
*/
|
||||||
initialize:function(id, lonlat, size, contentHTML, anchor, closeBox) {
|
initialize:function(id, lonlat, size, contentHTML, anchor, closeBox) {
|
||||||
@@ -43,7 +44,7 @@ OpenLayers.Popup.AnchoredBubble = OpenLayers.Class(OpenLayers.Popup.Anchored, {
|
|||||||
* px - {<OpenLayers.Pixel>}
|
* px - {<OpenLayers.Pixel>}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {DOMElement} Reference to a div that contains the drawn popup
|
* {DOMElement} Reference to a div that contains the drawn popup.
|
||||||
*/
|
*/
|
||||||
draw: function(px) {
|
draw: function(px) {
|
||||||
|
|
||||||
@@ -101,7 +102,8 @@ OpenLayers.Popup.AnchoredBubble = OpenLayers.Class(OpenLayers.Popup.Anchored, {
|
|||||||
if (this.div != null) {
|
if (this.div != null) {
|
||||||
if (this.contentDiv != null) {
|
if (this.contentDiv != null) {
|
||||||
this.div.style.background = "transparent";
|
this.div.style.background = "transparent";
|
||||||
OpenLayers.Rico.Corner.changeColor(this.contentDiv, this.backgroundColor);
|
OpenLayers.Rico.Corner.changeColor(this.contentDiv,
|
||||||
|
this.backgroundColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -119,14 +121,14 @@ OpenLayers.Popup.AnchoredBubble = OpenLayers.Class(OpenLayers.Popup.Anchored, {
|
|||||||
|
|
||||||
if (this.div != null) {
|
if (this.div != null) {
|
||||||
if (this.contentDiv != null) {
|
if (this.contentDiv != null) {
|
||||||
OpenLayers.Rico.Corner.changeOpacity(this.contentDiv, this.opacity);
|
OpenLayers.Rico.Corner.changeOpacity(this.contentDiv,
|
||||||
|
this.opacity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: setBorder
|
* Method: setBorder
|
||||||
*
|
|
||||||
* Always sets border to 0. Bubble Popups can not have a border.
|
* Always sets border to 0. Bubble Popups can not have a border.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
@@ -138,12 +140,10 @@ OpenLayers.Popup.AnchoredBubble = OpenLayers.Class(OpenLayers.Popup.Anchored, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: setRicoCorners
|
* Method: setRicoCorners
|
||||||
*
|
|
||||||
* Update RICO corners according to the popup's current relative postion.
|
* Update RICO corners according to the popup's current relative postion.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* firstTime - {Boolean} Is this the first time the corners are being
|
* firstTime - {Boolean} This the first time the corners are being rounded.
|
||||||
* rounded?
|
|
||||||
*/
|
*/
|
||||||
setRicoCorners:function(firstTime) {
|
setRicoCorners:function(firstTime) {
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ OpenLayers.Popup.AnchoredBubble = OpenLayers.Class(OpenLayers.Popup.Anchored, {
|
|||||||
* Method: getCornersToRound
|
* Method: getCornersToRound
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {String} The proper corners string ("tr tl bl br") for rico to round
|
* {String} The proper corners string ("tr tl bl br") for rico to round.
|
||||||
*/
|
*/
|
||||||
getCornersToRound:function() {
|
getCornersToRound:function() {
|
||||||
|
|
||||||
@@ -185,7 +185,7 @@ OpenLayers.Popup.AnchoredBubble = OpenLayers.Class(OpenLayers.Popup.Anchored, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constant: CORNER_SIZE
|
* Constant: CORNER_SIZE
|
||||||
* {Integer} 5. Border space for the RICO corners
|
* {Integer} 5. Border space for the RICO corners.
|
||||||
*/
|
*/
|
||||||
OpenLayers.Popup.AnchoredBubble.CORNER_SIZE = 5;
|
OpenLayers.Popup.AnchoredBubble.CORNER_SIZE = 5;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user