diff options
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r-- | lib/bzpage.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js index fb242d2..aec6632 100644 --- a/lib/bzpage.js +++ b/lib/bzpage.js @@ -4,17 +4,20 @@ // http://www.opensource.org/licenses/mit-license.php "use strict"; var util = require("util"); +var apiUtils = require("api-utils"); var simpleStorage = require("simple-storage"); // ==================================================================================== // BZPage's methods -var BZPage = exports.BZPage = function BZPage(doc, config) { +var BZPage = function BZPage(doc, config) { // initialize dynamic properties this.doc = doc; console.log("Now we are inside!"); }; +exports.BZPage = apiUtils.publicConstructor(BZPage); + BZPage.prototype.getURL = function getURL () { console.log("url = " + this.doc.location.href); return this.doc.location.href; |