aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-12 23:25:17 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-12 23:25:17 +0200
commit33f1d90438b3a4a20ce354f2d080a1d1d770487f (patch)
tree8e4cf16867c4d0b51e5c74d57b3c4a9dca7a5268 /lib/bzpage.js
parent8915ed6b738fd605ab15798784c0c688b107855b (diff)
downloadbugzilla-triage-33f1d90438b3a4a20ce354f2d080a1d1d770487f.tar.gz
Trying solutions from Felipe Gomes
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r--lib/bzpage.js5
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;