force new array
This commit is contained in:
parent
57d42d1636
commit
0fb7a13277
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user