[Pkg-javascript-commits] [leaflet] 191/301: fix FeatureGroup e.layer empty in old IE, close #1938

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:50 UTC 2014


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

js pushed a commit to branch master
in repository leaflet.

commit 2464d13414c522eacecfa7400894fdd65dde8303
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Wed Nov 6 23:35:42 2013 +0200

    fix FeatureGroup e.layer empty in old IE, close #1938
---
 src/layer/FeatureGroup.js | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/layer/FeatureGroup.js b/src/layer/FeatureGroup.js
index 3e4aaf0..aa12d9b 100644
--- a/src/layer/FeatureGroup.js
+++ b/src/layer/FeatureGroup.js
@@ -76,11 +76,10 @@ L.FeatureGroup = L.LayerGroup.extend({
 	},
 
 	_propagateEvent: function (e) {
-		if (!e.layer) {
-			e.layer = e.target;
-		}
-		e.target = this;
-
+		e = L.extend({}, e, {
+			layer: e.target,
+			target: this
+		});
 		this.fire(e.type, e);
 	}
 });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list