1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-11 15:25:47 +01:00

Prevent infinite loops when trying to execute mappings recursively.

This commit is contained in:
Kris Maglione
2011-01-18 18:09:28 -05:00
parent c78bb0f332
commit b836cc8110
4 changed files with 15 additions and 9 deletions

View File

@@ -769,7 +769,8 @@ Class.prototype = {
toString: function () {
if (this.toStringParams)
var params = "(" + this.toStringParams.map(function (m) isArray(m) ? "[" + m + "]" :
isString(m) ? m.quote() : String(m)) + ")";
isString(m) ? m.quote() : String(m))
.join(", ") + ")";
return "[instance " + this.constructor.className + (params || "") + "]";
},