Fix eslint errors.

Change-Id: I3a354f684a08725afb2fac832ed5b6c118670696
Reviewed-on: https://gerrit.libreoffice.org/82594
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
This commit is contained in:
Jan Holesovsky 2019-05-10 12:13:59 +02:00
parent 1040353fde
commit d40002ab5f

View file

@ -53,8 +53,8 @@ L.DomEvent.enableLongTap = function enableLongTap(el, tolerance, timeout) {
return;
}
var first = ev.touches[0],
target = first.target;
var first = ev.touches[0];
var target = first.target;
startPos = newPos = L.point(first.clientX, first.clientY);
@ -93,8 +93,8 @@ L.DomEvent.enableLongTap = function enableLongTap(el, tolerance, timeout) {
});
if (fireClick && ev && ev.changedTouches) {
var first = ev.changedTouches[0],
target = first.target;
var first = ev.changedTouches[0];
var target = first.target;
if (target && target.tagName && el.tagName.toLowerCase() === 'a') {
L.DomUtil.removeClass(target, 'leaflet-active');