diff options
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r-- | lib/bzpage.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js index aec6632..9f504c0 100644 --- a/lib/bzpage.js +++ b/lib/bzpage.js @@ -14,11 +14,17 @@ var BZPage = function BZPage(doc, config) { // initialize dynamic properties this.doc = doc; console.log("Now we are inside!"); + console.log("this = " + this); }; -exports.BZPage = apiUtils.publicConstructor(BZPage); - BZPage.prototype.getURL = function getURL () { console.log("url = " + this.doc.location.href); return this.doc.location.href; }; + +BZPage.prototype.toString = function toString () { + return "[Object BZPage]"; +}; + +//exports.BZPage = apiUtils.publicConstructor(BZPage); +exports.BZPage = BZPage;
\ No newline at end of file |