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:
@@ -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
|
||||
|
||||
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user