diff --git a/common/content/util.js b/common/content/util.js index e313747d..4ae31928 100644 --- a/common/content/util.js +++ b/common/content/util.js @@ -15,14 +15,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 obj. * @@ -400,7 +392,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,