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:
@@ -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}</>}
</>]);
|
||||
keys.push([i, noVal ? value : <>{key}: {value}
</>]);
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user