Skip to content

Commit

Permalink
Tidy ups from merged commits
Browse files Browse the repository at this point in the history
  • Loading branch information
danzel committed Oct 18, 2012
1 parent 5719cb9 commit 341c607
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/MarkerClusterGroup.js
Expand Up @@ -180,12 +180,11 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
clearLayers: function () {
//Need our own special implementation as the LayerGroup one doesn't work for us

//If we aren't on the map yet, just blow away the markers we know of
//If we aren't on the map (yet), blow away the markers we know of
if (!this._map) {
this._needsClustering = [];
this._gridClusters = undefined;
this._gridUnclustered = undefined;
// return this;
delete this._gridClusters;
delete this._gridUnclustered;
}

if (this._unspiderfy) {
Expand Down

0 comments on commit 341c607

Please sign in to comment.