coding standards -- mostly ND comment style corrections

git-svn-id: http://svn.openlayers.org/trunk/openlayers@4247 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-09-12 19:22:33 +00:00
parent ded09b6131
commit b3e11ca51e
+12 -15
View File
@@ -11,19 +11,19 @@
* Inherits from: * Inherits from:
* - <OpenLayers.Popup> * - <OpenLayers.Popup>
*/ */
OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, { OpenLayers.Popup.Anchored =
OpenLayers.Class(OpenLayers.Popup, {
/** /**
* Parameter: relativePosition * Parameter: relativePosition
* {String} Relative position of the popup ("lr", "ll", "tr", or "tl") * {String} Relative position of the popup ("lr", "ll", "tr", or "tl").
*/ */
relativePosition: null, relativePosition: null,
/** /**
* Parameter: anchor * Parameter: anchor
* {Object} Object to which we'll anchor the popup. * {Object} Object to which we'll anchor the popup. Must expose a
* Must expose a 'size' (<OpenLayers.Size>) and * 'size' (<OpenLayers.Size>) and 'offset' (<OpenLayers.Pixel>).
* 'offset' (<OpenLayers.Pixel>)
*/ */
anchor: null, anchor: null,
@@ -35,10 +35,8 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
* lonlat - {<OpenLayers.LonLat>} * lonlat - {<OpenLayers.LonLat>}
* size - {<OpenLayers.Size>} * size - {<OpenLayers.Size>}
* contentHTML - {String} * contentHTML - {String}
* anchor - {Object} Object which must expose a * anchor - {Object} Object which must expose a 'size' <OpenLayers.Size>
* - 'size' (OpenLayers.Size) and * and 'offset' <OpenLayers.Pixel> (generally an <OpenLayers.Icon>).
* - 'offset' (OpenLayers.Pixel)
* (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) {
@@ -57,7 +55,7 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
* 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) {
if (px == null) { if (px == null) {
@@ -80,7 +78,7 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
* *
* Returns: * Returns:
* {String} The relative position ("br" "tr" "tl "bl") at which the popup * {String} The relative position ("br" "tr" "tl "bl") at which the popup
* should be placed * should be placed.
*/ */
calculateRelativePosition:function(px) { calculateRelativePosition:function(px) {
var lonlat = this.map.getLonLatFromLayerPx(px); var lonlat = this.map.getLonLatFromLayerPx(px);
@@ -96,9 +94,8 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
* *
* Parameters: * Parameters:
* px - {<OpenLayers.Pixel>} * px - {<OpenLayers.Pixel>}
*/ */
moveTo: function(px) { moveTo: function(px) {
var newPx = this.calculateNewPx(px); var newPx = this.calculateNewPx(px);
var newArguments = new Array(newPx); var newArguments = new Array(newPx);
@@ -110,7 +107,7 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
* *
* Parameters: * Parameters:
* size - {<OpenLayers.Size>} * size - {<OpenLayers.Size>}
*/ */
setSize:function(size) { setSize:function(size) {
OpenLayers.Popup.prototype.setSize.apply(this, arguments); OpenLayers.Popup.prototype.setSize.apply(this, arguments);
@@ -128,7 +125,7 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
* *
* Returns: * Returns:
* {<OpenLayers.Pixel>} The the new px position of the popup on the screen * {<OpenLayers.Pixel>} The the new px position of the popup on the screen
* relative to the passed-in px * relative to the passed-in px.
*/ */
calculateNewPx:function(px) { calculateNewPx:function(px) {
var newPx = px.offset(this.anchor.offset); var newPx = px.offset(this.anchor.offset);