1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 07:27:58 +01:00

Improve objectToString a bit

This commit is contained in:
Kris Maglione
2008-11-24 00:22:28 +00:00
parent 7d8eb88954
commit 0c003d63d6
3 changed files with 22 additions and 16 deletions

View File

@@ -305,6 +305,7 @@ const util = { //{{{
{
obj = "[Object]";
}
obj = template.highlightFilter(util.clip(obj, 150), "\n", !color ? function () "^J" : function () <span class="hl-NonText">^J</span>);
let string = <><span class="hl-Title hl-Object">{obj}</span>::<br/>&#xa;</>;
let keys = [];
@@ -326,7 +327,7 @@ const util = { //{{{
else
var noVal = true;
}
value = template.highlight(value, true);
value = template.highlight(value, true, 150);
// FIXME: Inline style.
key = <span style="font-weight: bold;">{i}</span>;
if (!isNaN(i))