From 8915ed6b738fd605ab15798784c0c688b107855b Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sat, 12 Jun 2010 10:14:00 +0200 Subject: Even more simplification --- lib/rhbzpage.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/rhbzpage.js') 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; -- cgit