[OpenLayers-Commits] r11650 -
trunk/openlayers/lib/OpenLayers/Renderer
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Mon Mar 7 06:48:52 EST 2011
Author: fredj
Date: 2011-03-07 03:48:51 -0800 (Mon, 07 Mar 2011)
New Revision: 11650
Modified:
trunk/openlayers/lib/OpenLayers/Renderer/NG.js
Log:
Renderer.NG: remove global variables. r=crschmidt (closes #3153)
Modified: trunk/openlayers/lib/OpenLayers/Renderer/NG.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Renderer/NG.js 2011-03-07 11:31:51 UTC (rev 11649)
+++ trunk/openlayers/lib/OpenLayers/Renderer/NG.js 2011-03-07 11:48:51 UTC (rev 11650)
@@ -124,8 +124,8 @@
label._x = location.x;
label._y = location.y;
if(style.labelXOffset || style.labelYOffset) {
- xOffset = isNaN(style.labelXOffset) ? 0 : style.labelXOffset;
- yOffset = isNaN(style.labelYOffset) ? 0 : style.labelYOffset;
+ var xOffset = isNaN(style.labelXOffset) ? 0 : style.labelXOffset;
+ var yOffset = isNaN(style.labelYOffset) ? 0 : style.labelYOffset;
var res = this.getResolution();
location.move(xOffset*res, yOffset*res);
}
@@ -138,4 +138,4 @@
},
CLASS_NAME: "OpenLayers.Renderer.NG"
-});
\ No newline at end of file
+});
More information about the Commits
mailing list