From 70e7b5f18c07030e20cac8bfe821c9e8e7b6339b Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 20 Sep 2014 12:27:30 +0200 Subject: [PATCH] fix Ox.makeArray for nodelists --- source/Ox/js/Array.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox/js/Array.js b/source/Ox/js/Array.js index 403e3674..d02e300c 100644 --- a/source/Ox/js/Array.js +++ b/source/Ox/js/Array.js @@ -578,7 +578,7 @@ Ox.makeArray Wraps any non-array in an array. // FIXME: rename to toArray Ox.makeArray = function(value) { var ret, type = Ox.typeOf(value); - if (type == 'arguments') { + if (type == 'arguments' || type == 'nodelist') { ret = Ox.slice(value); } else if (type == 'array') { ret = value;