Pass empty object to guard the case when options.swaggerOptions is undefined

This commit is contained in:
aurelian
2015-04-02 11:27:28 +02:00
parent 4764d33fe5
commit c84202c1d7

View File

@@ -313,7 +313,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
if (isFileUpload) {
return this.handleFileUpload(map, form);
} else {
return this.model.execute(map, this.options.swaggerOptions, this.showCompleteStatus, this.showErrorStatus);
return this.model.execute(map, this.options.swaggerOptions || {}, this.showCompleteStatus, this.showErrorStatus, this);
}
}
},