From c78bb0f3328cf2083b94f2d9c1afcd1af2b48f53 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 18 Jan 2011 17:35:57 -0500 Subject: Get rid of absurd Map#route flag. Consolodate some constants. --- common/modules/base.jsm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'common/modules/base.jsm') 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 -- cgit v1.2.3