aboutsummaryrefslogtreecommitdiffstats
path: root/bugzillaBugTriage.js
diff options
context:
space:
mode:
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);
});
};