fix infinite recursion in latLngBounds factory, close #933
This commit is contained in:
parent
f5cfab73a1
commit
df03016f0c
@ -15,7 +15,7 @@ L.LatLngBounds = L.Class.extend({
|
||||
|
||||
// extend the bounds to contain the given point or bounds
|
||||
extend: function (obj) { // (LatLng) or (LatLngBounds)
|
||||
if (typeof obj[0] === 'number' || obj instanceof L.LatLng) {
|
||||
if (typeof obj[0] === 'number' || typeof obj[0] === 'string' || obj instanceof L.LatLng) {
|
||||
obj = L.latLng(obj);
|
||||
} else {
|
||||
obj = L.latLngBounds(obj);
|
||||
|
Loading…
Reference in New Issue
Block a user