aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-17 16:50:34 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-17 16:50:34 +0100
commit5f642c47d3fd1d4404c0a3d1c366239ac9da8dc6 (patch)
tree5009612c388b8b3f987e16b183f92ea5b35fca35 /data/lib
parent7be3c8b8f6b30fc2d2e4e419f4777bba32c1bffe (diff)
downloadbugzilla-triage-5f642c47d3fd1d4404c0a3d1c366239ac9da8dc6.tar.gz
Removing apply in createDeadLink was a bad idea.
Diffstat (limited to 'data/lib')
-rw-r--r--data/lib/util.js4
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);
}