[Pkg-javascript-commits] [leaflet-markercluster] 279/479: Tidy ups from merged commits
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:00:39 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet-markercluster.
commit 341c607c1bdfc10f7eab699987b5c805745d4306
Author: danzel <danzel at localhost.geek.nz>
Date: Fri Oct 19 10:16:39 2012 +1300
Tidy ups from merged commits
---
src/MarkerClusterGroup.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index f92745d..17c9e75 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -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) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git
More information about the Pkg-javascript-commits
mailing list