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

View File

@@ -11,19 +11,19 @@
* Inherits from:
* - <OpenLayers.Popup>
*/
OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
OpenLayers.Popup.Anchored =
OpenLayers.Class(OpenLayers.Popup, {
/**
* 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,
/**
* Parameter: anchor
* {Object} Object to which we'll anchor the popup.
* Must expose a 'size' (<OpenLayers.Size>) and
* 'offset' (<OpenLayers.Pixel>)
* {Object} Object to which we'll anchor the popup. Must expose a
* 'size' (<OpenLayers.Size>) and 'offset' (<OpenLayers.Pixel>).
*/
anchor: null,
@@ -35,10 +35,8 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
* lonlat - {<OpenLayers.LonLat>}
* size - {<OpenLayers.Size>}
* contentHTML - {String}
* anchor - {Object} Object which must expose a
* - 'size' (OpenLayers.Size) and
* - 'offset' (OpenLayers.Pixel)
* (this is generally an OpenLayers.Icon)
* anchor - {Object} Object which must expose a 'size' <OpenLayers.Size>
* and 'offset' <OpenLayers.Pixel> (generally an <OpenLayers.Icon>).
* closeBox - {Boolean}
*/
initialize:function(id, lonlat, size, contentHTML, anchor, closeBox) {
@@ -57,7 +55,7 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
* px - {<OpenLayers.Pixel>}
*
* Returns:
* {DOMElement} Reference to a div that contains the drawn popup
* {DOMElement} Reference to a div that contains the drawn popup.
*/
draw: function(px) {
if (px == null) {
@@ -80,7 +78,7 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
*
* Returns:
* {String} The relative position ("br" "tr" "tl "bl") at which the popup
* should be placed
* should be placed.
*/
calculateRelativePosition:function(px) {
var lonlat = this.map.getLonLatFromLayerPx(px);
@@ -96,9 +94,8 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
*
* Parameters:
* px - {<OpenLayers.Pixel>}
*/
*/
moveTo: function(px) {
var newPx = this.calculateNewPx(px);
var newArguments = new Array(newPx);
@@ -110,7 +107,7 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
*
* Parameters:
* size - {<OpenLayers.Size>}
*/
*/
setSize:function(size) {
OpenLayers.Popup.prototype.setSize.apply(this, arguments);
@@ -128,7 +125,7 @@ OpenLayers.Popup.Anchored = OpenLayers.Class(OpenLayers.Popup, {
*
* Returns:
* {<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) {
var newPx = px.offset(this.anchor.offset);