fix #1191, forgot to put returns on handlebar helper

This commit is contained in:
Josh Ponelat
2015-04-22 09:00:50 +02:00
parent d76a62caf7
commit f4b2c49eb5
3 changed files with 717 additions and 715 deletions

1341
dist/swagger-ui.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -4,9 +4,9 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({
initialize: function(){ initialize: function(){
Handlebars.registerHelper('isArray', function(param, opts) { Handlebars.registerHelper('isArray', function(param, opts) {
if (param.type.toLowerCase() === 'array' || param.allowMultiple) { if (param.type.toLowerCase() === 'array' || param.allowMultiple) {
opts.fn(this); return opts.fn(this);
} else { } else {
opts.inverse(this); return opts.inverse(this);
} }
}); });
}, },