aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rhbzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-17 12:03:40 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-17 12:03:40 +0200
commite51092dd40432d35c53ece84181c1d0041506a5d (patch)
tree2c2c14f3a5f7a9a6593e6fad413efa01978628a7 /lib/rhbzpage.js
parenta736a291841da4f5b8f4525618b836856c2b0790 (diff)
downloadbugzilla-triage-e51092dd40432d35c53ece84181c1d0041506a5d.tar.gz
Following https://bugzilla.mozilla.org/show_bug.cgi?id=572566 example now
works.
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r--lib/rhbzpage.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index 6127c33..21d0546 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -20,12 +20,9 @@ var RHBugzillaPage = function RHBugzillaPage(doc, config) {
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());
+ this.bugId = this.getBugId();
+ console.log("bug# = " + this.getBugId());
console.log("Now we are outside!");
}; // END OF RHBugzillaPage CONSTRUCTOR
@@ -33,7 +30,7 @@ RHBugzillaPage.prototype.toString = function toString () {
return ("[Object RHBugzillaPage]");
};
-RHBugzillaPage.prototype = util.heir(BZPage.prototype);
+RHBugzillaPage.prototype = util.heir(BZPage);
RHBugzillaPage.prototype.constructor = RHBugzillaPage;
//exports.RHBugzillaPage = apiUtils.publicConstructor(RHBugzillaPage);