Add missing semicolon. Non functional change.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11185 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2011-02-21 14:55:01 +00:00
parent 2fd0eff3c1
commit 7a1cb00fe4
11 changed files with 19 additions and 18 deletions
+1 -1
View File
@@ -316,7 +316,7 @@ OpenLayers.Control.LayerSwitcher =
// create span // create span
var labelSpan = document.createElement("span"); var labelSpan = document.createElement("span");
OpenLayers.Element.addClass(labelSpan, "labelSpan") OpenLayers.Element.addClass(labelSpan, "labelSpan");
if (!baseLayer && !layer.inRange) { if (!baseLayer && !layer.inRange) {
labelSpan.style.color = "gray"; labelSpan.style.color = "gray";
} }
+3 -3
View File
@@ -133,7 +133,7 @@ OpenLayers.Format.CSWGetDomain.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
}, },
"Value": function(node, obj) { "Value": function(node, obj) {
var attrs = node.attributes; var attrs = node.attributes;
var value = {} var value = {};
for(var i=0, len=attrs.length; i<len; ++i) { for(var i=0, len=attrs.length; i<len; ++i) {
value[attrs[i].name] = attrs[i].nodeValue; value[attrs[i].name] = attrs[i].nodeValue;
} }
@@ -159,7 +159,7 @@ OpenLayers.Format.CSWGetDomain.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
}, },
"MinValue": function(node, obj) { "MinValue": function(node, obj) {
var attrs = node.attributes; var attrs = node.attributes;
var value = {} var value = {};
for(var i=0, len=attrs.length; i<len; ++i) { for(var i=0, len=attrs.length; i<len; ++i) {
value[attrs[i].name] = attrs[i].nodeValue; value[attrs[i].name] = attrs[i].nodeValue;
} }
@@ -168,7 +168,7 @@ OpenLayers.Format.CSWGetDomain.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
}, },
"MaxValue": function(node, obj) { "MaxValue": function(node, obj) {
var attrs = node.attributes; var attrs = node.attributes;
var value = {} var value = {};
for(var i=0, len=attrs.length; i<len; ++i) { for(var i=0, len=attrs.length; i<len; ++i) {
value[attrs[i].name] = attrs[i].nodeValue; value[attrs[i].name] = attrs[i].nodeValue;
} }
+1 -1
View File
@@ -182,7 +182,7 @@ OpenLayers.Format.WFST.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
if(value) { if(value) {
this.setAttributeNS( this.setAttributeNS(
node, this.namespaces["xsi"], "xsi:schemaLocation", value node, this.namespaces["xsi"], "xsi:schemaLocation", value
) );
} }
return OpenLayers.Format.XML.prototype.write.apply(this, [node]); return OpenLayers.Format.XML.prototype.write.apply(this, [node]);
}, },
+1 -1
View File
@@ -79,7 +79,7 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
options = OpenLayers.Util.applyDefaults({ options = OpenLayers.Util.applyDefaults({
restrictedMinZoom: 1, restrictedMinZoom: 1,
sphericalMercator: true sphericalMercator: true
}, options) }, options);
var name = options.name || "Bing " + (options.type || this.type); var name = options.name || "Bing " + (options.type || this.type);
var newArgs = [name, null, options]; var newArgs = [name, null, options];
+1 -1
View File
@@ -779,7 +779,7 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
// don't try to draw the feature with the renderer if the layer is not // don't try to draw the feature with the renderer if the layer is not
// drawn itself // drawn itself
if (!this.drawn) { if (!this.drawn) {
return return;
} }
if (typeof style != "object") { if (typeof style != "object") {
if(!style && feature.state === OpenLayers.State.DELETE) { if(!style && feature.state === OpenLayers.State.DELETE) {
+1 -1
View File
@@ -256,7 +256,7 @@ OpenLayers.Layer.WMS = OpenLayers.Class(OpenLayers.Layer.Grid, {
var projectionCode = this.projection.equals(mapProjection) ? var projectionCode = this.projection.equals(mapProjection) ?
this.projection.getCode() : this.projection.getCode() :
mapProjection.getCode(); mapProjection.getCode();
var value = (projectionCode == "none") ? null : projectionCode var value = (projectionCode == "none") ? null : projectionCode;
if (parseFloat(this.params.VERSION) >= 1.3) { if (parseFloat(this.params.VERSION) >= 1.3) {
this.params.CRS = value; this.params.CRS = value;
} else { } else {
+4 -4
View File
@@ -105,7 +105,7 @@ OpenLayers.Layer.Zoomify = OpenLayers.Class(OpenLayers.Layer.Grid, {
*/ */
initializeZoomify: function( size ) { initializeZoomify: function( size ) {
var imageSize = size.clone() var imageSize = size.clone();
var tiles = new OpenLayers.Size( var tiles = new OpenLayers.Size(
Math.ceil( imageSize.w / this.standardTileSize ), Math.ceil( imageSize.w / this.standardTileSize ),
Math.ceil( imageSize.h / this.standardTileSize ) Math.ceil( imageSize.h / this.standardTileSize )
@@ -151,9 +151,9 @@ OpenLayers.Layer.Zoomify = OpenLayers.Class(OpenLayers.Layer.Grid, {
OpenLayers.Layer.Grid.prototype.destroy.apply(this, arguments); OpenLayers.Layer.Grid.prototype.destroy.apply(this, arguments);
// Remove from memory the Zoomify pyramid - is that enough? // Remove from memory the Zoomify pyramid - is that enough?
this.tileCountUpToTier.length = 0 this.tileCountUpToTier.length = 0;
this.tierSizeInTiles.length = 0 this.tierSizeInTiles.length = 0;
this.tierImageSize.length = 0 this.tierImageSize.length = 0;
}, },
+1 -1
View File
@@ -1018,7 +1018,7 @@ OpenLayers.Map = OpenLayers.Class({
this.resetLayersZIndex(); this.resetLayersZIndex();
this.events.triggerEvent("removelayer", {layer: layer}); this.events.triggerEvent("removelayer", {layer: layer});
layer.events.triggerEvent("removed", {map: this, layer: layer}) layer.events.triggerEvent("removed", {map: this, layer: layer});
}, },
/** /**
+1 -1
View File
@@ -765,7 +765,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
x = (comp.x / resolution - this.offset.x) | 0; x = (comp.x / resolution - this.offset.x) | 0;
y = (comp.y / resolution - this.offset.y) | 0; y = (comp.y / resolution - this.offset.y) | 0;
pathComp = " " + x + "," + y; pathComp = " " + x + "," + y;
path.push(pathComp) path.push(pathComp);
if (i==0) { if (i==0) {
path.push(" l"); path.push(" l");
} }
+3 -2
View File
@@ -42,7 +42,7 @@ OpenLayers.Tile.Image.IFrame = {
delete iFrame; delete iFrame;
} }
} else { } else {
OpenLayers.Tile.Image.prototype.clear.apply(this, arguments) OpenLayers.Tile.Image.prototype.clear.apply(this, arguments);
} }
}, },
@@ -221,4 +221,5 @@ OpenLayers.Tile.Image.IFrame = {
return form; return form;
} }
} };
+2 -2
View File
@@ -1038,7 +1038,7 @@ OpenLayers.Util.getParameters = function(url) {
} }
// follow OGC convention of comma delimited values // follow OGC convention of comma delimited values
value = value.split(",") value = value.split(",");
//if there's only one value, do not return as array //if there's only one value, do not return as array
if (value.length == 1) { if (value.length == 1) {
@@ -1839,7 +1839,7 @@ OpenLayers.Util.getFormattedLonLat = function(coordinate, axis, dmsOption) {
if (!dmsOption) { if (!dmsOption) {
dmsOption = 'dms'; //default to show degree, minutes, seconds dmsOption = 'dms'; //default to show degree, minutes, seconds
} }
var abscoordinate = Math.abs(coordinate) var abscoordinate = Math.abs(coordinate);
var coordinatedegrees = Math.floor(abscoordinate); var coordinatedegrees = Math.floor(abscoordinate);
var coordinateminutes = (abscoordinate - coordinatedegrees)/(1/60); var coordinateminutes = (abscoordinate - coordinatedegrees)/(1/60);