mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-15 06:15:48 +01:00
Death to E4X and stuff.
This commit is contained in:
@@ -144,7 +144,7 @@ defineModule("base", {
|
||||
"Set", "Struct", "StructBase", "Timer", "UTF8", "XPCOM", "XPCOMShim", "XPCOMUtils",
|
||||
"XPCSafeJSObjectWrapper", "array", "bind", "call", "callable", "ctypes", "curry",
|
||||
"debuggerProperties", "defineModule", "deprecated", "endModule", "forEach", "isArray",
|
||||
"isGenerator", "isinstance", "isObject", "isString", "isSubclass", "iter", "iterAll",
|
||||
"isGenerator", "isinstance", "isObject", "isString", "isSubclass", "isXML", "iter", "iterAll",
|
||||
"iterOwnProperties", "keys", "memoize", "octal", "properties", "require", "set", "update",
|
||||
"values", "withCallerGlobal"
|
||||
]
|
||||
@@ -482,6 +482,12 @@ function isinstance(object, interfaces) {
|
||||
*/
|
||||
function isObject(obj) typeof obj === "object" && obj != null || obj instanceof Ci.nsISupports;
|
||||
|
||||
/**
|
||||
* Returns true if obje is an E4X XML object.
|
||||
* @deprecated
|
||||
*/
|
||||
function isXML(obj) typeof obj === "xml";
|
||||
|
||||
/**
|
||||
* Returns true if and only if its sole argument is an
|
||||
* instance of the builtin Array type. The array may come from
|
||||
|
||||
Reference in New Issue
Block a user