1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 19:04:11 +01:00

objectToString stuff.

This commit is contained in:
Kris Maglione
2011-08-23 20:40:16 -04:00
parent cf29db91af
commit 94249780e9
4 changed files with 23 additions and 8 deletions

View File

@@ -885,8 +885,10 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
if (!hasValue) {
if (isArray(i) && i.length == 2)
[i, value] = i;
else
else {
var noVal = true;
value = i;
}
}
value = template.highlight(value, true, 150);
@@ -895,7 +897,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
i = parseInt(i);
else if (/^[A-Z_]+$/.test(i))
i = "";
keys.push([i, <>{key}{noVal ? "" : <>: {value}</>}&#x0a;</>]);
keys.push([i, noVal ? value : <>{key}: {value}&#x0a;</>]);
}
}
catch (e) {