1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 18:27:59 +01:00
--HG--
branch : testing
This commit is contained in:
Kris Maglione
2010-08-26 15:18:49 -04:00
11 changed files with 58 additions and 48 deletions

View File

@@ -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,