add missing semi-colons (jslint now clean on all lib/ code)

git-svn-id: http://svn.openlayers.org/branches/openlayers/2.7@7975 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Paul Spencer
2008-09-07 14:02:25 +00:00
parent 904f0391bf
commit a43e98762c
8 changed files with 13 additions and 13 deletions

View File

@@ -144,7 +144,7 @@ OpenLayers.Filter.Comparison = OpenLayers.Class(OpenLayers.Filter, {
escapeChar = escapeChar ? escapeChar : "!";
this.value = this.value.replace(
new RegExp("\\"+escapeChar+"(.|$)", "g"), "\\$1")
new RegExp("\\"+escapeChar+"(.|$)", "g"), "\\$1");
this.value = this.value.replace(
new RegExp("\\"+singleChar, "g"), ".");
this.value = this.value.replace(

View File

@@ -59,7 +59,7 @@ OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
* {<OpenLayers.Filter>} A filter object.
*/
read: function(data) {
var obj = {}
var obj = {};
var filter = this.readers.ogc["Filter"].apply(this, [data, obj]);
return obj.filter;
},

View File

@@ -86,7 +86,7 @@ OpenLayers.Format.GPX = OpenLayers.Class(OpenLayers.Format.XML, {
var tracks = doc.getElementsByTagName("trk");
for (var i=0, len=tracks.length; i<len; i++) {
// Attributes are only in trk nodes, not trkseg nodes
var attrs = {}
var attrs = {};
if(this.extractAttributes) {
attrs = this.parseAttributes(tracks[i]);
}
@@ -104,7 +104,7 @@ OpenLayers.Format.GPX = OpenLayers.Class(OpenLayers.Format.XML, {
if(this.extractRoutes) {
var routes = doc.getElementsByTagName("rte");
for (var k=0, klen=routes.length; k<klen; k++) {
var attrs = {}
var attrs = {};
if(this.extractAttributes) {
attrs = this.parseAttributes(routes[k]);
}

View File

@@ -188,7 +188,7 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
xOffset: xOffset,
yOffset: yOffset,
newBoxModel: newBoxModel
}
};
}
return this.boxCharacteristics;
},

View File

@@ -159,7 +159,7 @@ OpenLayers.Layer.FixedZoomLevels = OpenLayers.Class({
// case (5) -- neither 'numZoomLevels' not 'maxZoomLevel' was
// set on either the layer or the map. So we just use the
// maximum limit as calculated by the layer's constants.
this.numZoomLevels = limitZoomLevels
this.numZoomLevels = limitZoomLevels;
}
//now that the 'numZoomLevels' is appropriately, safely set,

View File

@@ -339,7 +339,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
xOffset = xOffset * aspectRatio;
style.graphicWidth = size * aspectRatio;
style.graphicHeight = size;
this.graphicRotate(node, xOffset, yOffset)
this.graphicRotate(node, xOffset, yOffset);
}
}, this);
img.src = style.externalGraphic;
@@ -385,7 +385,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
var filter =
"progid:DXImageTransform.Microsoft.Matrix(M11=" + costheta +
",M12=" + (-sintheta) + ",M21=" + sintheta + ",M22=" + costheta +
",SizingMethod='auto expand')\n"
",SizingMethod='auto expand')\n";
// set the opacity (needed for the imagedata)
var opacity = style.graphicOpacity || style.fillOpacity;
@@ -493,7 +493,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
return (parts[0] == 1 || parts[1] == 1) ? "dot" : "dash";
} else if (parts.length == 4) {
return (1*parts[0] >= 2*parts[1]) ? "longdashdot" :
"dashdot"
"dashdot";
}
return "solid";
}

View File

@@ -132,7 +132,7 @@ OpenLayers.Request = {
failure(request);
}
}
}
};
// send request (optionally with data) and return
request.send(config.data);

View File

@@ -373,11 +373,11 @@ OpenLayers.Util.onImageLoadError = function() {
break;
}
}
var guess = Math.floor(urls.length * Math.random())
var guess = Math.floor(urls.length * Math.random());
var new_url = urls[guess];
k = 0;
while(new_url == current_url && k++ < 4){
guess = Math.floor(urls.length * Math.random())
guess = Math.floor(urls.length * Math.random());
new_url = urls[guess];
}
this.src = src.replace(current_url, new_url);
@@ -1397,7 +1397,7 @@ OpenLayers.Util.getRenderedDimensions = function(contentHTML, size, options) {
w = size.w;
container.style.width = w + "px";
} else if (size.h) {
h = size.h
h = size.h;
container.style.height = h + "px";
}
}