aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-13 00:04:16 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-13 00:04:16 +0200
commitcb1f3478e20a3d70ec90e95343345a4bb92d7711 (patch)
tree7a3020105bb0d62d721a44622170e6bea51e0160 /lib/bzpage.js
parent33f1d90438b3a4a20ce354f2d080a1d1d770487f (diff)
downloadbugzilla-triage-cb1f3478e20a3d70ec90e95343345a4bb92d7711.tar.gz
Another unsatisfactory result.
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r--lib/bzpage.js10
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