fix Ox.makeArray for nodelists
This commit is contained in:
parent
aaa24bf309
commit
70e7b5f18c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue