From 6e5105025cb8af22bbe32c7400c36e867af48e8b Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 4 Dec 2013 12:59:29 +0100 Subject: [PATCH] in Ox.values, handle nodelists (so that Ox.some(nodelist, test) doesn't fail) --- source/Ox/js/Collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox/js/Collection.js b/source/Ox/js/Collection.js index 746ed0f3..0ef492b2 100644 --- a/source/Ox/js/Collection.js +++ b/source/Ox/js/Collection.js @@ -572,7 +572,7 @@ Ox.values Returns the values of a collection @*/ Ox.values = function(collection) { var ret, type = Ox.typeOf(collection); - if (type == 'array') { + if (type == 'array' || type == 'nodelist') { ret = Ox.clone(collection); } else if (type == 'object' || type == 'storage') { ret = [];