aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rhbzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-12 10:14:00 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-12 10:14:00 +0200
commit8915ed6b738fd605ab15798784c0c688b107855b (patch)
tree07744f4fab2710511f4114cdb9e638ed53eafd8e /lib/rhbzpage.js
parentb7d1189321fdcaee248d59573e53fdf2a6a2d1d9 (diff)
downloadbugzilla-triage-8915ed6b738fd605ab15798784c0c688b107855b.tar.gz
Even more simplification
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r--lib/rhbzpage.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index 407d383..70186c9 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -15,10 +15,18 @@ var RHBugzillaPage = exports.RHBugzillaPage = function RHBugzillaPage(doc, confi
console.log("location = " + this.doc.location);
- this.bugId = this.getBugId();
+ //this.bugId = this.getBugId();
+ this.bugId = util.getBugNo(this.doc.location.href);
+ console.log("doc = " + this.doc.location);
console.log("bug number = " + this.bugId);
+ console.log("this = " + this);
+ console.log("prototype = " + this.prototype);
+ console.log("constructor = " + this.constructor);
+ console.log("this.getURL = " + this.getURL);
+ //this.bugId = this.getBugId();
+ console.log("bug URL = " + this.getURL());
console.log("Now we are outside!");
}; // END OF RHBugzillaPage CONSTRUCTOR
-RHBugzillaPage.prototype = util.heir(BZPage);
+RHBugzillaPage.prototype = util.heir(BZPage.prototype);
RHBugzillaPage.prototype.constructor = RHBugzillaPage;