mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 14:05:46 +01:00
typeof <embed/> == "function" ... WTF?
This commit is contained in:
@@ -292,6 +292,9 @@ var Template = Module("Template", {
|
||||
case "boolean":
|
||||
return <span highlight="Boolean">{str}</span>;
|
||||
case "function":
|
||||
if (arg instanceof Ci.nsIDOMElement) // wtf?
|
||||
return util.objectToString(arg, !bw);
|
||||
|
||||
str = str.replace("/* use strict */ \n", "/* use strict */ ");
|
||||
if (processStrings)
|
||||
return <span highlight="Function">{str.replace(/\{(.|\n)*(?:)/g, "{ ... }")}</span>;
|
||||
|
||||
Reference in New Issue
Block a user