Provide option highlightSizeThreshold to allow conditional syntax highlighting based on response size

This commit is contained in:
John Bryson
2014-07-31 11:56:13 -04:00
parent c948b40d34
commit 28c7597138
4 changed files with 7 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class ResourceView extends Backbone.View
operation.number = @number
# Render an operation and add it to operations li
operationView = new OperationView({model: operation, tagName: 'li', className: 'endpoint'})
operationView = new OperationView({model: operation, tagName: 'li', className: 'endpoint', swaggerOptions: @options.swaggerOptions})
$('.endpoints', $(@el)).append operationView.render().el
@number++