Merge pull request #1192 from ponelat/fix/issue-1191

fix #1191, forgot to put returns on handlebar helper
This commit is contained in:
Tony Tam
2015-04-28 07:00:23 -07:00
3 changed files with 717 additions and 715 deletions

1409
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);
} }
}); });
}, },
@@ -98,4 +98,4 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({
} }
} }
} }
}); });