1
0
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:
Kris Maglione
2011-09-17 11:15:11 -04:00
parent 057600d780
commit b330d8c909
2 changed files with 15 additions and 12 deletions

View File

@@ -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>;