mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:27:59 +01:00
Merge.
--HG-- branch : testing
This commit is contained in:
@@ -18,14 +18,6 @@ const Util = Module("util", {
|
||||
this.Array = Util.Array;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns true if its argument is an Array object, regardless
|
||||
* of which context it comes from.
|
||||
*
|
||||
* @param {object} obj
|
||||
*/
|
||||
isArray: function isArray(obj) Object.prototype.toString.call(obj) == "[object Array]",
|
||||
|
||||
/**
|
||||
* Returns a shallow copy of <b>obj</b>.
|
||||
*
|
||||
@@ -454,7 +446,7 @@ const Util = Module("util", {
|
||||
doc = window.content.document;
|
||||
if (!elem)
|
||||
elem = doc;
|
||||
if (util.isArray(expression))
|
||||
if (isarray(expression))
|
||||
expression = util.makeXPath(expression);
|
||||
|
||||
let result = doc.evaluate(expression, elem,
|
||||
|
||||
Reference in New Issue
Block a user