[Pkg-javascript-commits] [leaflet] 277/301: Use event.target as a default for event.layer. Closes #2252

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:56 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 5a796c98974f4e66f9b9e7cb51e43e349166b295
Author: Andrew Kirkegaard <andrew at farmlogs.com>
Date:   Fri Nov 29 12:15:40 2013 -0500

    Use event.target as a default for event.layer. Closes #2252
    
    In 2464d13, event.layer is overwritten to equal event.target. This
    commit uses event.target as a default for event.layer.
---
 src/layer/FeatureGroup.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/layer/FeatureGroup.js b/src/layer/FeatureGroup.js
index 710ba96..dbff15d 100644
--- a/src/layer/FeatureGroup.js
+++ b/src/layer/FeatureGroup.js
@@ -85,10 +85,10 @@ L.FeatureGroup = L.LayerGroup.extend({
 	},
 
 	_propagateEvent: function (e) {
-		e = L.extend({}, e, {
+		e = L.extend({
 			layer: e.target,
 			target: this
-		});
+		}, e);
 		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