[OpenLayers-Commits] r11665 - trunk/openlayers/lib/OpenLayers/Renderer

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Tue Mar 8 02:00:11 EST 2011


Author: tschaub
Date: 2011-03-07 23:00:11 -0800 (Mon, 07 Mar 2011)
New Revision: 11665

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

Modified: trunk/openlayers/lib/OpenLayers/Renderer/SVG2.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Renderer/SVG2.js	2011-03-08 06:57:52 UTC (rev 11664)
+++ trunk/openlayers/lib/OpenLayers/Renderer/SVG2.js	2011-03-08 07:00:11 UTC (rev 11665)
@@ -651,9 +651,8 @@
     getComponentsString: function(components, separator) {
         var len = components.length;
         var strings = new Array(len);
-        for(var i=0; i<len; i++) {
-            component = components[i];
-            strings[i] = this.getShortString(component);
+        for (var i=0; i<len; i++) {
+            strings[i] = this.getShortString(components[i]);
         }
 
         return strings.join(separator || ",");



More information about the Commits mailing list