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/bzpage.js | |
parent | 5be47e95d1cef282046cdf8d159cd69f986245c8 (diff) | |
download | bugzilla-triage-df33c6920d9dd3765202b86614b660d2c8f85db2.tar.gz |
Update to the latest Request API
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r-- | lib/bzpage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js index b8c38b8..94689ce 100644 --- a/lib/bzpage.js +++ b/lib/bzpage.js @@ -150,9 +150,9 @@ BZPage.prototype.getRealBugNo = function () { // https://bugzilla.redhat.com/show_bug.cgi?ctype=xml&id=serialWacom Request({ url: this.win.location.href+"&ctype=xml", - onComplete: function() { - if (this.response.status === 200) { - var xmlRepr = this.response.xml; + onComplete: function(response) { + if (response.status === 200) { + var xmlRepr = response.xml; var bugID = parseInt(xmlRepr.getElementsByTagName("bug_id")[0].textContent, 10); if (isNaN(bugID)) { throw new Error("Cannot get bug no. even from XML representation!"); |