Merge branch 'master' of github.com:swagger-api/swagger-ui

This commit is contained in:
Tony Tam
2015-12-18 12:05:52 -08:00

View File

@@ -32,7 +32,9 @@ Handlebars.registerHelper('renderTextParam', function(param) {
idAtt = ' id=\'' + param.valueId + '\'';
}
defaultValue = defaultValue.replace(/'/g,''');
if (typeof defaultValue === 'string' || defaultValue instanceof String) {
defaultValue = defaultValue.replace(/'/g,''');
}
if(isArray) {
result = '<textarea class=\'body-textarea' + (param.required ? ' required' : '') + '\' name=\'' + param.name + '\'' + idAtt + dataVendorExtensions;