fix for license structure change

This commit is contained in:
Tony Tam
2014-09-18 09:29:52 -07:00
parent ba14498fbd
commit 4ad4b499ee
4 changed files with 23 additions and 7 deletions

View File

@@ -13,6 +13,14 @@ class MainView extends Backbone.View
route.operationsArray.sort sorter
if (sorterName == "alpha") # sort top level paths if alpha
@model.apisArray.sort sorter
log @model
if @model.info.license and typeof @model.info.license is 'string'
name = @model.info.license
url = @model.info.licenseUrl
@model.info.license = {}
@model.info.license.name = name
@model.info.license.url = url
render: ->
# Render the outer container for resources