[OpenLayers-Commits] r11664 - trunk/openlayers/lib/OpenLayers

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Tue Mar 8 01:57:53 EST 2011


Author: tschaub
Date: 2011-03-07 22:57:52 -0800 (Mon, 07 Mar 2011)
New Revision: 11664

Modified:
   trunk/openlayers/lib/OpenLayers/Map.js
Log:
Getting rid of global yRestriction in Map.js (thanks jorix for the report).

Modified: trunk/openlayers/lib/OpenLayers/Map.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Map.js	2011-03-08 06:54:48 UTC (rev 11663)
+++ trunk/openlayers/lib/OpenLayers/Map.js	2011-03-08 06:57:52 UTC (rev 11664)
@@ -1685,7 +1685,8 @@
         var x = hw + dx;
         var y = hh + dy;
         var wrapDateLine = this.baseLayer.wrapDateLine;
-        var xRestriction = yRestriction = 0;
+        var xRestriction = 0;
+        var yRestriction = 0;
         if (this.restrictedExtent) {
             xRestriction = hw;
             yRestriction = hh;



More information about the Commits mailing list