mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 05:55:46 +01:00
Death to E4X and stuff. Also fix some bugs.
This commit is contained in:
@@ -714,15 +714,11 @@ var Template_ = Module("Template_", {
|
||||
arg = String(arg).replace("/* use strict */ \n", "/* use strict */ ");
|
||||
return arg;
|
||||
case "undefined":
|
||||
return ["span", { highlight: "Null" }, arg];
|
||||
return ["span", { highlight: "Null" }, "undefined"];
|
||||
case "object":
|
||||
if (arg instanceof Ci.nsIDOMElement)
|
||||
return util.objectToString(arg, !bw);
|
||||
|
||||
// for java packages value.toString() would crash so badly
|
||||
// that we cannot even try/catch it
|
||||
if (/^\[JavaPackage.*\]$/.test(arg))
|
||||
return "[JavaPackage]";
|
||||
if (processStrings && false)
|
||||
str = template._highlightFilter(str, "\n",
|
||||
function () ["span", { highlight: "NonText" },
|
||||
|
||||
Reference in New Issue
Block a user