Declaring inRange variable. No functional change.

This commit is contained in:
ahocevar
2011-10-25 18:52:00 +02:00
parent f6773d32c9
commit 6dc36e90ac

View File

@@ -132,7 +132,7 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
this.translate(this.xOffset, 0);
return true;
} else {
inRange = this.translate(left - this.left + this.xOffset, top - this.top);
var inRange = this.translate(left - this.left + this.xOffset, top - this.top);
if (!inRange) {
// recenter the coordinate system
this.setExtent(extent, true);