diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index 1e94f0d8b..91678a7fa 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -287,11 +287,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ } } - //TODO: Can remove this isValid test when leaflet 0.6 is released - var nonPointBounds = this._nonPointGroup.getBounds(); - if (nonPointBounds.isValid()) { - bounds.extend(nonPointBounds); - } + bounds.extend(this._nonPointGroup.getBounds()); return bounds; },