master
will Farrell 2016-07-22 18:41:57 -06:00
parent 9e18e68ce7
commit 4d1aa5fe31
1 changed files with 2 additions and 2 deletions

View File

@ -81,13 +81,13 @@ function coerceToTypes(optionCoerceTypes, dataTypes) {
for (var i=0; i<dataTypes.length; i++) {
var t = dataTypes[i];
if (COERCE_TO_TYPES[t]) types[types.length] = t;
else if (optionCoerceTypes === 'array' && t === 'array') types[types.length] = t;
else if (optionCoerceTypes === 'array' && t === 'array') types[types.length] = t;
}
if (types.length) return types;
} else if (COERCE_TO_TYPES[dataTypes]) {
return [dataTypes];
} else if (optionCoerceTypes === 'array' && dataTypes === 'array') {
return ['array'];
return ['array'];
}
}