From 868f886cad32a3336312be70771df379e8caaaa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 5 Aug 2009 07:28:08 +0000 Subject: [PATCH] make the point1 and point2 variables local to the getSortedSegments method, no functional change, p=igrcic (closes #2217) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9612 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Geometry/LineString.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Geometry/LineString.js b/lib/OpenLayers/Geometry/LineString.js index 0b86b98500..0275fdff66 100644 --- a/lib/OpenLayers/Geometry/LineString.js +++ b/lib/OpenLayers/Geometry/LineString.js @@ -127,7 +127,7 @@ OpenLayers.Geometry.LineString = OpenLayers.Class(OpenLayers.Geometry.Curve, { */ getSortedSegments: function() { var numSeg = this.components.length - 1; - var segments = new Array(numSeg); + var segments = new Array(numSeg), point1, point2; for(var i=0; i