From 4ed5f85eab37b073a4e320c10115e7a121abffcf Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 20 Nov 2009 01:53:29 +1100 Subject: [PATCH] Remove util.isArray which is made redundant by isarray. --HG-- extra : rebase_source : 59b8cb2d2e12ebd92b78e95ae16860f6e570841e --- common/content/util.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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,