[Pkg-javascript-commits] [leaflet-markercluster] 139/219: Parse id to an int, fixes #531

Jonas Smedegaard dr at jones.dk
Sat May 7 09:39:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit c24555196220162feff9db07cc1c14abd577e221
Author: danzel <danzel at localhost.geek.nz>
Date:   Mon Oct 19 09:23:19 2015 +1300

    Parse id to an int, fixes #531
---
 src/MarkerClusterGroup.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index b817a20..f801547 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -391,6 +391,8 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 	//Overrides LayerGroup.getLayer, WARNING: Really bad performance
 	getLayer: function (id) {
 		var result = null;
+		
+		id = parseInt(id, 10);
 
 		this.eachLayer(function (l) {
 			if (L.stamp(l) === id) {

-- 
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