summaryrefslogtreecommitdiff
path: root/common/modules/base.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-01-18 17:35:57 -0500
committerKris Maglione <maglione.k@gmail.com>2011-01-18 17:35:57 -0500
commitc78bb0f3328cf2083b94f2d9c1afcd1af2b48f53 (patch)
tree115e3e51c1de52c5adc24e10c61979af857c489c /common/modules/base.jsm
parent3e95b19cb09be60feb5236968bb11948064049d3 (diff)
downloadpentadactyl-c78bb0f3328cf2083b94f2d9c1afcd1af2b48f53.tar.gz
Get rid of absurd Map#route flag. Consolodate some constants.
Diffstat (limited to 'common/modules/base.jsm')
-rw-r--r--common/modules/base.jsm7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/modules/base.jsm b/common/modules/base.jsm
index 1d5bbd40..df7fb30b 100644
--- a/common/modules/base.jsm
+++ b/common/modules/base.jsm
@@ -766,7 +766,12 @@ Class.prototype = {
}
},
- toString: function () "[instance " + this.constructor.className + "]",
+ toString: function () {
+ if (this.toStringParams)
+ var params = "(" + this.toStringParams.map(function (m) isArray(m) ? "[" + m + "]" :
+ isString(m) ? m.quote() : String(m)) + ")";
+ return "[instance " + this.constructor.className + (params || "") + "]";
+ },
/**
* Executes *callback* after *timeout* milliseconds. The value of