1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 22:24:13 +01:00

Get rid of absurd Map#route flag. Consolodate some constants.

This commit is contained in:
Kris Maglione
2011-01-18 17:35:57 -05:00
parent 3e95b19cb0
commit c78bb0f332
9 changed files with 52 additions and 50 deletions

View File

@@ -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