diff options
-rw-r--r-- | data/lib/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/lib/util.js b/data/lib/util.js index 1b5c37d..e51a657 100644 --- a/data/lib/util.js +++ b/data/lib/util.js @@ -115,10 +115,10 @@ function createDeadLink (id, text, parent, callback, params, before, covered, ac } else { newAElem.setAttribute("href", ""); newAElem.addEventListener("click", function(evt) { - // callback.apply(null, params); - callback(params); evt.stopPropagation(); evt.preventDefault(); + // We need apply, because params could be array of parameters + callback.apply(null, params); }, false); } |