diff --git a/src/auto-events.js b/src/auto-events.js index 0a982f7..b115315 100644 --- a/src/auto-events.js +++ b/src/auto-events.js @@ -190,8 +190,8 @@ link.setAttribute("onclick", onClickAttribute); } else { - link.addEventListener("click", function (element) { - saAutomatedLink(element.target, collect); + link.addEventListener("click", function () { + saAutomatedLink(this, collect); }); } }