From c5afbacc936bd404a66c4973345539dd0209b8d2 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 14 Sep 2006 11:39:32 +0000 Subject: [PATCH] Add scoping term. Thanks to tschaub, closes #261 . git-svn-id: http://svn.openlayers.org/trunk/openlayers@1441 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index 708d1bd0c8..b9a19c246c 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -788,7 +788,7 @@ OpenLayers.Map.prototype = { * @type int */ getZoomForExtent: function (bounds) { - zoom = null; + var zoom = null; if (this.baseLayer != null) { zoom = this.baseLayer.getZoomForExtent(bounds); } @@ -803,7 +803,7 @@ OpenLayers.Map.prototype = { * @type int */ getZoomForResolution: function(resolution) { - zoom = null; + var zoom = null; if (this.baseLayer != null) { zoom = this.baseLayer.getZoomForResolution(resolution); }