From da694df1dc70e14397708f23f2ec9c7194d60c83 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 4 Jan 2010 15:44:59 +0100 Subject: Fix apply parameters again. --- bugzillaBugTriage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bugzillaBugTriage.js') 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); }); }; -- cgit