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 : "!"; escapeChar = escapeChar ? escapeChar : "!";
this.value = this.value.replace( this.value = this.value.replace(
new RegExp("\\"+escapeChar+"(.|$)", "g"), "\\$1") new RegExp("\\"+escapeChar+"(.|$)", "g"), "\\$1");
this.value = this.value.replace( this.value = this.value.replace(
new RegExp("\\"+singleChar, "g"), "."); new RegExp("\\"+singleChar, "g"), ".");
this.value = this.value.replace( 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. * {<OpenLayers.Filter>} A filter object.
*/ */
read: function(data) { read: function(data) {
var obj = {} var obj = {};
var filter = this.readers.ogc["Filter"].apply(this, [data, obj]); var filter = this.readers.ogc["Filter"].apply(this, [data, obj]);
return obj.filter; return obj.filter;
}, },

View File

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

View File

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

View File

@@ -159,7 +159,7 @@ OpenLayers.Layer.FixedZoomLevels = OpenLayers.Class({
// case (5) -- neither 'numZoomLevels' not 'maxZoomLevel' was // case (5) -- neither 'numZoomLevels' not 'maxZoomLevel' was
// set on either the layer or the map. So we just use the // set on either the layer or the map. So we just use the
// maximum limit as calculated by the layer's constants. // maximum limit as calculated by the layer's constants.
this.numZoomLevels = limitZoomLevels this.numZoomLevels = limitZoomLevels;
} }
//now that the 'numZoomLevels' is appropriately, safely set, //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; xOffset = xOffset * aspectRatio;
style.graphicWidth = size * aspectRatio; style.graphicWidth = size * aspectRatio;
style.graphicHeight = size; style.graphicHeight = size;
this.graphicRotate(node, xOffset, yOffset) this.graphicRotate(node, xOffset, yOffset);
} }
}, this); }, this);
img.src = style.externalGraphic; img.src = style.externalGraphic;
@@ -385,7 +385,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
var filter = var filter =
"progid:DXImageTransform.Microsoft.Matrix(M11=" + costheta + "progid:DXImageTransform.Microsoft.Matrix(M11=" + costheta +
",M12=" + (-sintheta) + ",M21=" + sintheta + ",M22=" + costheta + ",M12=" + (-sintheta) + ",M21=" + sintheta + ",M22=" + costheta +
",SizingMethod='auto expand')\n" ",SizingMethod='auto expand')\n";
// set the opacity (needed for the imagedata) // set the opacity (needed for the imagedata)
var opacity = style.graphicOpacity || style.fillOpacity; 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"; return (parts[0] == 1 || parts[1] == 1) ? "dot" : "dash";
} else if (parts.length == 4) { } else if (parts.length == 4) {
return (1*parts[0] >= 2*parts[1]) ? "longdashdot" : return (1*parts[0] >= 2*parts[1]) ? "longdashdot" :
"dashdot" "dashdot";
} }
return "solid"; return "solid";
} }

View File

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

View File

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