diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-10-10 14:11:50 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-10-10 14:13:30 +0200 |
commit | df33c6920d9dd3765202b86614b660d2c8f85db2 (patch) | |
tree | 9644a35ec23e2a3fa588bc56c86d0c52906e8592 /lib/main.js | |
parent | 5be47e95d1cef282046cdf8d159cd69f986245c8 (diff) | |
download | bugzilla-triage-df33c6920d9dd3765202b86614b660d2c8f85db2.tar.gz |
Update to the latest Request API
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/main.js b/lib/main.js index ea01925..8e8aeaa 100644 --- a/lib/main.js +++ b/lib/main.js @@ -65,9 +65,9 @@ function initialize(callback) { Request({ url: urlStr, - onComplete: function () { - if (this.response.status == 200) { - config.gJSONData = this.response.json; + onComplete: function (response) { + if (response.status == 200) { + config.gJSONData = response.json; // Get additional tables if ("downloadJSON" in config.gJSONData.configData) { @@ -78,9 +78,9 @@ function initialize(callback) { var url = arr[1]; Request({ url: url, - onComplete: function() { - if (this.response.status == 200) { - config.gJSONData.constantData[title] = this.response.json; + onComplete: function(response) { + if (response.status == 200) { + config.gJSONData.constantData[title] = response.json; } } }).get(); |