1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 13:35:47 +01:00

Simplify feed auto-detection code.

--HG--
extra : rebase_source : 70d362bc1b442c52336a34038fc2facc2f460c8c
This commit is contained in:
Kris Maglione
2009-10-15 18:09:55 -04:00
parent 2ea5acb45a
commit 9ef122da08
2 changed files with 25 additions and 27 deletions

View File

@@ -11,6 +11,14 @@ const NS = Namespace("liberator", "http://vimperator.org/namespaces/liberator");
default xml namespace = XHTML;
const util = { //{{{
/**
* 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>.
*