closes #38 closes #37

This commit is contained in:
Ayush Gupta
2012-08-28 15:58:07 +05:30
parent 13862f7df6
commit ded600aecd
7 changed files with 11 additions and 12 deletions

View File

@@ -1,7 +1,5 @@
class SwaggerUi extends Backbone.Router
# Routes
routes:
'' : 'load'
# Defaults
dom_id: "swagger_ui"
@@ -46,7 +44,6 @@ class SwaggerUi extends Backbone.Router
@mainView?.clear()
@headerView.update(@options.discoveryUrl, @options.apiKey)
@api = new SwaggerApi(@options)
Backbone.history.start pushState: true
# This is bound to success handler for SwaggerApi
# so it gets called when SwaggerApi completes loading