1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-30 10:13:32 +02:00

Allow most characters in command names.

This commit is contained in:
Kris Maglione
2010-12-20 13:59:38 -05:00
parent bd4ad25901
commit f290f022dd
3 changed files with 59 additions and 9 deletions

View File

@@ -480,7 +480,7 @@ function isinstance(targ, src) {
/**
* Returns true if obj is a non-null object.
*/
function isObject(obj) typeof obj === "object" && obj != null;
function isObject(obj) typeof obj === "object" && obj != null || obj instanceof Ci.nsISupports;
/**
* Returns true if and only if its sole argument is an

View File

@@ -773,11 +773,11 @@ const Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
XML.prettyPrinting = false;
XML.ignoreWhitespace = false;
if (object === null)
return "null\n";
if (object == null)
return object + "\n";
if (typeof object !== "object")
return false;
if (!isObject(object))
return String(object);
if (object instanceof Ci.nsIDOMElement) {
const NAMESPACES = array.toObject([