diff options
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r-- | lib/rhbzpage.js | 12 |
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; |