From b9f898b7c0a64537c2888fd7fcefce082f42718e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8bra?= Date: Mon, 17 Apr 2017 23:05:01 +0100 Subject: [PATCH] Fix issues Fix issues --- js/base.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/base.js b/js/base.js index 2cbabc84..cf2fcf96 100644 --- a/js/base.js +++ b/js/base.js @@ -206,6 +206,8 @@ function addAnchorLinks() { } } +/* jshint ignore:start */ + function _gaLt(event) { /* If GA is blocked or not loaded, or not main|middle|touch click then don't track */ @@ -274,7 +276,8 @@ function trackOutgoingLinks() { /* Use "click" if touchscreen device, else "mousedown" */ var _gaLtEvt = ("ontouchstart" in _w) ? "click" : "mousedown"; /* Attach the event to all clicks in the document after page has loaded */ - _w.addEventListener ? _w.addEventListener("load", function() {document.body.addEventListener(_gaLtEvt, _gaLt, !1)}, !1) - : _w.attachEvent && _w.attachEvent("onload", function() {document.body.attachEvent("on" + _gaLtEvt, _gaLt)}); + _w.addEventListener ? _w.addEventListener("load", function() {document.body.addEventListener(_gaLtEvt, _gaLt, !1)}, !1) : _w.attachEvent && _w.attachEvent("onload", function() {document.body.attachEvent("on" + _gaLtEvt, _gaLt)}); } } + +/* jshint ignore:end */