mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 20:57:58 +01:00
Remove util.isArray which is made redundant by isarray.
--HG-- extra : rebase_source : 59b8cb2d2e12ebd92b78e95ae16860f6e570841e
This commit is contained in:
@@ -15,14 +15,6 @@ const Util = Module("util", {
|
|||||||
this.Array = Util.Array;
|
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>.
|
* Returns a shallow copy of <b>obj</b>.
|
||||||
*
|
*
|
||||||
@@ -400,7 +392,7 @@ const Util = Module("util", {
|
|||||||
doc = window.content.document;
|
doc = window.content.document;
|
||||||
if (!elem)
|
if (!elem)
|
||||||
elem = doc;
|
elem = doc;
|
||||||
if (util.isArray(expression))
|
if (isarray(expression))
|
||||||
expression = util.makeXPath(expression);
|
expression = util.makeXPath(expression);
|
||||||
|
|
||||||
let result = doc.evaluate(expression, elem,
|
let result = doc.evaluate(expression, elem,
|
||||||
|
|||||||
Reference in New Issue
Block a user