force new array

This commit is contained in:
snkashis 2013-02-19 16:24:27 -05:00 committed by danzel
parent 57d42d1636
commit 0fb7a13277

View File

@ -85,14 +85,9 @@ L.Polyline = L.Path.extend({
return bounds;
},
_convertLatLngs: function (latlngs, noOverwrite) {
var i, len, target;
if (noOverwrite) {
target = [];
}
else {
target = latlngs;
}
_convertLatLngs: function (latlngs) {
var i, len, target = [];
for (i = 0, len = latlngs.length; i < len; i++) {
if (L.Util.isArray(latlngs[i]) && typeof latlngs[i][0] !== 'number') {
return;