coding standards - getting rid of these tabs all at once

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3686 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-07-10 21:56:11 +00:00
parent b82c90d5cd
commit 0a3de3fddc
15 changed files with 214 additions and 214 deletions

View File

@@ -436,7 +436,7 @@ OpenLayers.Bounds.prototype = {
//shift right? //shift right?
while ( newBounds.left < maxExtent.left && while ( newBounds.left < maxExtent.left &&
(newBounds.right - rightTolerance) <= maxExtent.left ) { (newBounds.right - rightTolerance) <= maxExtent.left ) {
newBounds = newBounds.add(maxExtent.getWidth(), 0); newBounds = newBounds.add(maxExtent.getWidth(), 0);
} }

View File

@@ -15,46 +15,46 @@ OpenLayers.Feature = OpenLayers.Class.create();
OpenLayers.Feature.prototype= { OpenLayers.Feature.prototype= {
/** /**
* Property: events * Property: events
* {<OpenLayers.Events>} * {<OpenLayers.Events>}
*/ */
events: null, events: null,
/** /**
* Property: layer * Property: layer
* {<OpenLayers.Layer>} * {<OpenLayers.Layer>}
*/ */
layer: null, layer: null,
/** /**
* Property: id * Property: id
* {String} * {String}
*/ */
id: null, id: null,
/** /**
* Property: lonlat * Property: lonlat
* {<OpenLayers.LonLat>} * {<OpenLayers.LonLat>}
*/ */
lonlat: null, lonlat: null,
/** /**
* Property: data * Property: data
* {Object} * {Object}
*/ */
data: null, data: null,
/** /**
* Property: marker * Property: marker
* {<OpenLayers.Marker>} * {<OpenLayers.Marker>}
*/ */
marker: null, marker: null,
/** /**
* Property: popup * Property: popup
* {<OpenLayers.Popup>} * {<OpenLayers.Popup>}
*/ */
popup: null, popup: null,
/** /**
* Constructor: OpenLayers.Feature * Constructor: OpenLayers.Feature

View File

@@ -29,34 +29,34 @@ OpenLayers.Feature.Vector.prototype =
OpenLayers.Class.inherit( OpenLayers.Feature, { OpenLayers.Class.inherit( OpenLayers.Feature, {
/** /**
* Property: fid * Property: fid
* {String} * {String}
*/ */
fid: null, fid: null,
/** /**
* Property: geometry * Property: geometry
* {<OpenLayers.Geometry>} * {<OpenLayers.Geometry>}
*/ */
geometry: null, geometry: null,
/** /**
* Property: attributes * Property: attributes
* {Object} * {Object}
*/ */
attributes: null, attributes: null,
/** /**
* Property: state * Property: state
* {String} * {String}
*/ */
state: null, state: null,
/** /**
* Property: style * Property: style
* {Object} * {Object}
*/ */
style: null, style: null,
/** /**
* Constructor: OpenLayers.Feature.Vector * Constructor: OpenLayers.Feature.Vector

View File

@@ -59,8 +59,8 @@ OpenLayers.Format.WFS.prototype =
write: function(features) { write: function(features) {
var transaction = document.createElementNS('http://www.opengis.net/wfs', 'wfs:Transaction'); var transaction = document.createElementNS('http://www.opengis.net/wfs', 'wfs:Transaction');
transaction.setAttribute("version","1.0.0"); transaction.setAttribute("version","1.0.0");
transaction.setAttribute("service","WFS"); transaction.setAttribute("service","WFS");
for (var i=0; i < features.length; i++) { for (var i=0; i < features.length; i++) {
switch (features[i].state) { switch (features[i].state) {
case OpenLayers.State.INSERT: case OpenLayers.State.INSERT:

View File

@@ -16,10 +16,10 @@
OpenLayers.Handler.Box = OpenLayers.Class.create(); OpenLayers.Handler.Box = OpenLayers.Class.create();
OpenLayers.Handler.Box.prototype = OpenLayers.Class.inherit( OpenLayers.Handler, { OpenLayers.Handler.Box.prototype = OpenLayers.Class.inherit( OpenLayers.Handler, {
/** /**
* Property: dragHandler * Property: dragHandler
* {<OpenLayers.Handler.Drag>} * {<OpenLayers.Handler.Drag>}
*/ */
dragHandler: null, dragHandler: null,
/** /**
* Constructor: OpenLayers.Handler.Box * Constructor: OpenLayers.Handler.Box

View File

@@ -233,7 +233,7 @@ OpenLayers.Handler.Point.prototype =
* Return: * Return:
* {Boolean} Allow event propagation * {Boolean} Allow event propagation
*/ */
mousemove: function (evt) { mousemove: function (evt) {
if(this.drawing) { if(this.drawing) {
var lonlat = this.map.getLonLatFromPixel(evt.xy); var lonlat = this.map.getLonLatFromPixel(evt.xy);
this.point.geometry.x = lonlat.lon; this.point.geometry.x = lonlat.lon;
@@ -254,7 +254,7 @@ OpenLayers.Handler.Point.prototype =
* Return: * Return:
* {Boolean} Allow event propagation * {Boolean} Allow event propagation
*/ */
mouseup: function (evt) { mouseup: function (evt) {
if(this.drawing) { if(this.drawing) {
this.finalize(); this.finalize();
return false; return false;

View File

@@ -10,40 +10,40 @@ OpenLayers.Icon = OpenLayers.Class.create();
OpenLayers.Icon.prototype = { OpenLayers.Icon.prototype = {
/** /**
* Property: url * Property: url
* {String} image url * {String} image url
*/ */
url: null, url: null,
/** /**
* Property: size * Property: size
* {<OpenLayers.Size>} * {<OpenLayers.Size>}
*/ */
size: null, size: null,
/** /**
* Property: offset * Property: offset
* {<OpenLayers.Pixel>} distance in pixels to offset the image when being rendered * {<OpenLayers.Pixel>} distance in pixels to offset the image when being rendered
*/ */
offset: null, offset: null,
/** /**
* Property: calculateOffset * Property: calculateOffset
* {<OpenLayers.Pixel>} Function to calculate the offset (based on the size) * {<OpenLayers.Pixel>} Function to calculate the offset (based on the size)
*/ */
calculateOffset: null, calculateOffset: null,
/** /**
* Property: imageDiv * Property: imageDiv
* {DOMElement} * {DOMElement}
*/ */
imageDiv: null, imageDiv: null,
/** /**
* Property: px * Property: px
* {<OpenLayers.Pixel>} * {<OpenLayers.Pixel>}
*/ */
px: null, px: null,
/** /**
* Constructor: OpenLayers.Icon * Constructor: OpenLayers.Icon

View File

@@ -19,29 +19,29 @@ OpenLayers.Layer.GeoRSS.prototype =
OpenLayers.Class.inherit( OpenLayers.Layer.Markers, { OpenLayers.Class.inherit( OpenLayers.Layer.Markers, {
/** /**
* Property: location * Property: location
* {String} store url of text file * {String} store url of text file
*/ */
location: null, location: null,
/** /**
* Property: features * Property: features
* Array({<OpenLayers.Feature>}) * Array({<OpenLayers.Feature>})
*/ */
features: null, features: null,
/** /**
* Property: selectedFeature * Property: selectedFeature
* {<OpenLayers.Feature>} * {<OpenLayers.Feature>}
*/ */
selectedFeature: null, selectedFeature: null,
/** /**
* Property: icon * Property: icon
* {<OpenLayers.Icon>} * {<OpenLayers.Icon>}
*/ */
icon: null, icon: null,
/** /**
* Constructor: OpenLayers.Layer.GeoRSS * Constructor: OpenLayers.Layer.GeoRSS
* Create a GeoRSS Layer. * Create a GeoRSS Layer.

View File

@@ -16,26 +16,26 @@ OpenLayers.Layer.Markers.prototype =
OpenLayers.Class.inherit( OpenLayers.Layer, { OpenLayers.Class.inherit( OpenLayers.Layer, {
/** /**
* APIProperty: isBaseLayer * APIProperty: isBaseLayer
* {Boolean} Markers layer is never a base layer. * {Boolean} Markers layer is never a base layer.
*/ */
isBaseLayer: false, isBaseLayer: false,
/** /**
* Property: markers * Property: markers
* Array({<OpenLayers.Marker>}) internal marker list * Array({<OpenLayers.Marker>}) internal marker list
*/ */
markers: null, markers: null,
/** /**
* Property: drawn * Property: drawn
* {Boolean} internal state of drawing. This is a workaround for the fact * {Boolean} internal state of drawing. This is a workaround for the fact
* that the map does not call moveTo with a zoomChanged when the map is * that the map does not call moveTo with a zoomChanged when the map is
* first starting up. This lets us catch the case where we have *never* * first starting up. This lets us catch the case where we have *never*
* drawn the layer, and draw it even if the zoom hasn't changed. * drawn the layer, and draw it even if the zoom hasn't changed.
*/ */
drawn: false, drawn: false,
/** /**
* Constructor: OpenLayers.Layer.Markers * Constructor: OpenLayers.Layer.Markers

View File

@@ -15,28 +15,28 @@ OpenLayers.Marker = OpenLayers.Class.create();
OpenLayers.Marker.prototype = { OpenLayers.Marker.prototype = {
/** /**
* Property: icon * Property: icon
* {<OpenLayers.Icon>} * {<OpenLayers.Icon>}
*/ */
icon: null, icon: null,
/** /**
* Property: lonlat * Property: lonlat
* {<OpenLayers.LonLat>} location of object * {<OpenLayers.LonLat>} location of object
*/ */
lonlat: null, lonlat: null,
/** /**
* Property: events * Property: events
* {<OpenLayers.Events>} * {<OpenLayers.Events>}
*/ */
events: null, events: null,
/** /**
* Property: map * Property: map
* {<OpenLayers.Map>} * {<OpenLayers.Map>}
*/ */
map: null, map: null,
/** /**
* Constructor: OpenLayers.Marker * Constructor: OpenLayers.Marker

View File

@@ -16,16 +16,16 @@ OpenLayers.Marker.Box.prototype =
OpenLayers.Class.inherit( OpenLayers.Marker, { OpenLayers.Class.inherit( OpenLayers.Marker, {
/** /**
* Property: bounds * Property: bounds
* {<OpenLayers.Bounds>} * {<OpenLayers.Bounds>}
*/ */
bounds: null, bounds: null,
/** /**
* Property: div * Property: div
* {DOMElement} * {DOMElement}
*/ */
div: null, div: null,
/** /**
* Constructor: OpenLayers.Marker.Box * Constructor: OpenLayers.Marker.Box

View File

@@ -17,10 +17,10 @@ OpenLayers.Popup.BORDER = "0px";
OpenLayers.Popup.prototype = { OpenLayers.Popup.prototype = {
/** /**
* Property: events * Property: events
* {<OpenLayers.Events>} * {<OpenLayers.Events>}
*/ */
events: null, events: null,
/** Property: id /** Property: id
* {String} * {String}
@@ -28,71 +28,71 @@ OpenLayers.Popup.prototype = {
id: "", id: "",
/** /**
* Property: lonlat * Property: lonlat
* {<OpenLayers.LonLat>} * {<OpenLayers.LonLat>}
*/ */
lonlat: null, lonlat: null,
/** /**
* Property: div * Property: div
* {DOMElement} * {DOMElement}
*/ */
div: null, div: null,
/** /**
* Property: size * Property: size
* {<OpenLayers.Size>} * {<OpenLayers.Size>}
*/ */
size: null, size: null,
/** /**
* Property: contentHTML * Property: contentHTML
* {String} * {String}
*/ */
contentHTML: "", contentHTML: "",
/** /**
* Property: backgroundColor * Property: backgroundColor
* {String} * {String}
*/ */
backgroundColor: "", backgroundColor: "",
/** /**
* Property: opacity * Property: opacity
* {float} * {float}
*/ */
opacity: "", opacity: "",
/** /**
* Property: border * Property: border
* {String} * {String}
*/ */
border: "", border: "",
/** /**
* Property: contentDiv * Property: contentDiv
* {DOMElement} * {DOMElement}
*/ */
contentDiv: null, contentDiv: null,
/** /**
* Property: groupDiv * Property: groupDiv
* {DOMElement} * {DOMElement}
*/ */
groupDiv: null, groupDiv: null,
/** /**
* Property: padding * Property: padding
* {int} * {int}
*/ */
padding: 5, padding: 5,
/** /**
* Property: map * Property: map
* {<OpenLayers.Map>} this gets set in Map.js when the popup is added to the map * {<OpenLayers.Map>} this gets set in Map.js when the popup is added to the map
*/ */
map: null, map: null,
/** /**
* Constructor: OpenLayers.Popup * Constructor: OpenLayers.Popup

View File

@@ -21,16 +21,16 @@ OpenLayers.Tile = OpenLayers.Class.create();
OpenLayers.Tile.prototype = { OpenLayers.Tile.prototype = {
/** /**
* Property: id * Property: id
* {String} null * {String} null
*/ */
id: null, id: null,
/** /**
* Property: layer * Property: layer
* {<OpenLayers.Layer>} layer the tile is attached to * {<OpenLayers.Layer>} layer the tile is attached to
*/ */
layer: null, layer: null,
/** /**
* Property: url * Property: url
@@ -43,28 +43,28 @@ OpenLayers.Tile.prototype = {
url: null, url: null,
/** /**
* APIProperty: bounds * APIProperty: bounds
* {<OpenLayers.Bounds>} null * {<OpenLayers.Bounds>} null
*/ */
bounds: null, bounds: null,
/** /**
* Property: size * Property: size
* {<OpenLayers.Size>} null * {<OpenLayers.Size>} null
*/ */
size: null, size: null,
/** /**
* Property: position * Property: position
* {<OpenLayers.Pixel>} Top Left pixel of the tile * {<OpenLayers.Pixel>} Top Left pixel of the tile
*/ */
position: null, position: null,
/** /**
* Property: drawn * Property: drawn
* {Boolean} false * {Boolean} false
*/ */
drawn: false, drawn: false,
/** TBD 3.0 -- remove 'url' from the list of parameters to the constructor. /** TBD 3.0 -- remove 'url' from the list of parameters to the constructor.
* there is no need for the base tile class to have a url. * there is no need for the base tile class to have a url.

View File

@@ -157,7 +157,7 @@ OpenLayers.Tile.Image.prototype =
var offset = this.layer.imageOffset; var offset = this.layer.imageOffset;
var size = this.layer.getImageSize(); var size = this.layer.getImageSize();
if (this.layer.alpha) { if (this.layer.alpha) {
this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null, this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null,
offset, offset,

View File

@@ -19,16 +19,16 @@ OpenLayers.Tile.WFS.prototype =
OpenLayers.Class.inherit( OpenLayers.Tile, { OpenLayers.Class.inherit( OpenLayers.Tile, {
/** /**
* Property: features * Property: features
* {Array(<OpenLayers.Feature>)} list of features in this tile * {Array(<OpenLayers.Feature>)} list of features in this tile
*/ */
features: null, features: null,
/** /**
* Property: url * Property: url
* {String} * {String}
*/ */
url: null, url: null,
/** TBD 3.0 - reorder the parameters to the init function to put URL /** TBD 3.0 - reorder the parameters to the init function to put URL
* as last, so we can continue to call tile.initialize() * as last, so we can continue to call tile.initialize()