aboutsummaryrefslogtreecommitdiffstats
path: root/bugzillaBugTriage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-01-04 15:44:59 +0100
committerMatěj Cepl <mcepl@redhat.com>2010-01-04 15:44:59 +0100
commitda694df1dc70e14397708f23f2ec9c7194d60c83 (patch)
tree207db3c2d59d98e02bee062bc6984f59f0225989 /bugzillaBugTriage.js
parent0cb344d87199ebb59cb7493d65e7a24d2842c50c (diff)
downloadbugzilla-triage-da694df1dc70e14397708f23f2ec9c7194d60c83.tar.gz
Fix apply parameters again.
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r--bugzillaBugTriage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index d3626e1..dc20779 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -126,7 +126,7 @@ loadText = function(URL, cb_function,what) {
req.onreadystatechange = function (aEvt) {
if (req.readyState == 4) {
if (req.status == 200) {
- cb_function.apply(req.responseText,what);
+ cb_function.call(what,req.responseText);
} else {
throw "Getting " + URL + "failed!" ;
}
@@ -142,7 +142,7 @@ loadJSON = function(URL, cb_function) {
loadText(URL,function (text) {
var data = JSON.parse(text);
- cb_function.apply(data,what);
+ cb_function.call(what,data);
});
};