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
|
// FIXME: rename to toArray
|
||||||
Ox.makeArray = function(value) {
|
Ox.makeArray = function(value) {
|
||||||
var ret, type = Ox.typeOf(value);
|
var ret, type = Ox.typeOf(value);
|
||||||
if (type == 'arguments') {
|
if (type == 'arguments' || type == 'nodelist') {
|
||||||
ret = Ox.slice(value);
|
ret = Ox.slice(value);
|
||||||
} else if (type == 'array') {
|
} else if (type == 'array') {
|
||||||
ret = value;
|
ret = value;
|
||||||
|
|
Loading…
Reference in a new issue