updated from master
This commit is contained in:
@@ -16,6 +16,9 @@ class SwaggerUi extends Backbone.Router
|
||||
@dom_id = options.dom_id
|
||||
delete options.dom_id
|
||||
|
||||
if not options.supportedSubmitMethods?
|
||||
options.supportedSubmitMethods = ['get','put','post','delete','head','options','patch']
|
||||
|
||||
# Create an empty div which contains the dom_id
|
||||
$('body').append('<div id="' + @dom_id + '"></div>') if not $('#' + @dom_id)?
|
||||
|
||||
@@ -59,7 +62,6 @@ class SwaggerUi extends Backbone.Router
|
||||
@headerView.update(url)
|
||||
|
||||
@api = new SwaggerClient(@options)
|
||||
@api.build()
|
||||
|
||||
# collapse all sections
|
||||
collapseAll:() ->
|
||||
@@ -87,7 +89,7 @@ class SwaggerUi extends Backbone.Router
|
||||
setTimeout(
|
||||
=>
|
||||
Docs.shebang()
|
||||
400
|
||||
100
|
||||
)
|
||||
|
||||
buildUrl: (base, url) ->
|
||||
|
||||
Reference in New Issue
Block a user