fixed rendering to support latest client for #932

This commit is contained in:
Tony Tam
2015-02-12 11:26:21 -08:00
parent f6be07ff9a
commit 1fbbabe974

View File

@@ -5,12 +5,13 @@ class ResourceView extends Backbone.View
@model.description = null @model.description = null
render: -> render: ->
$(@el).html(Handlebars.templates.resource(@model))
methods = {} methods = {}
if @model.description if @model.description?
@model.summary = @model.description @model.summary = @model.description
$(@el).html(Handlebars.templates.resource(@model))
# Render each operation # Render each operation
for operation in @model.operationsArray for operation in @model.operationsArray
counter = 0 counter = 0