/*jslint onevar: false, browser: true, evil: true, laxbreak: true, undef: true, nomen: true, eqeqeq: true, bitwise: true, maxerr: 1000, immed: false, white: false, plusplus: false, regexp: false, undef: false */ /*global jetpack */ // Released under the MIT/X11 license // http://www.opensource.org/licenses/mit-license.php "use strict"; var util = require("util"); var BZPage = require("bzpage").BZPage; // ==================================================================================== // RHBugzillaPage object var RHBugzillaPage = exports.RHBugzillaPage = function RHBugzillaPage(doc, config) { // inheritance ... call superobject's constructor BZPage.call(this, doc, config); console.log("location = " + this.doc.location); //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.prototype); RHBugzillaPage.prototype.constructor = RHBugzillaPage;