changed array detection (thanks fkei)

This commit is contained in:
csausdev 2011-03-04 19:49:43 +11:00
parent 079edd19c8
commit 71459ab6d3

View File

@ -134,7 +134,7 @@ function addAppender () {
args = [ ALL_CATEGORIES ]; args = [ ALL_CATEGORIES ];
} }
//argument may already be an array //argument may already be an array
if (args[0].forEach) { if (Array.isArray(args[0])) {
args = args[0]; args = args[0];
} }