diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-01-18 17:35:57 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-01-18 17:35:57 -0500 |
commit | c78bb0f3328cf2083b94f2d9c1afcd1af2b48f53 (patch) | |
tree | 115e3e51c1de52c5adc24e10c61979af857c489c /common/modules/base.jsm | |
parent | 3e95b19cb09be60feb5236968bb11948064049d3 (diff) | |
download | pentadactyl-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.jsm | 7 |
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 |