[Pkg-javascript-commits] [leaflet] 140/301: Remove leftover code from the draggable/tap cleanup. Fixes #2103

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:47 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 91cc18503c53f42ea7762f496ff31a9e831e80c0
Author: danzel <danzel at localhost.geek.nz>
Date:   Mon Oct 21 11:38:19 2013 +1300

    Remove leftover code from the draggable/tap cleanup. Fixes #2103
---
 src/dom/Draggable.js | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/dom/Draggable.js b/src/dom/Draggable.js
index 03304f1..be4616b 100644
--- a/src/dom/Draggable.js
+++ b/src/dom/Draggable.js
@@ -59,16 +59,10 @@ L.Draggable = L.Class.extend({
 		L.DomUtil.disableImageDrag();
 		L.DomUtil.disableTextSelection();
 
-		var first = e.touches ? e.touches[0] : e,
-		    el = first.target;
-
-		// if touching a link, highlight it
-		if (L.Browser.touch && el.tagName && el.tagName.toLowerCase() === 'a') {
-			L.DomUtil.addClass(el, 'leaflet-active');
-		}
-
 		if (this._moving) { return; }
 
+		var first = e.touches ? e.touches[0] : e;
+
 		this._startPoint = new L.Point(first.clientX, first.clientY);
 		this._startPos = this._newPos = L.DomUtil.getPosition(this._element);
 

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