fix Ox.makeArray for nodelists

This commit is contained in:
rlx 2014-09-20 12:27:30 +02:00
parent aaa24bf309
commit 70e7b5f18c

View file

@ -578,7 +578,7 @@ Ox.makeArray <f> 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;