moved from render to init method
This commit is contained in:
@@ -3,12 +3,12 @@ class ResourceView extends Backbone.View
|
||||
@auths = opts.auths
|
||||
if "" is @model.description
|
||||
@model.description = null
|
||||
if @model.description?
|
||||
@model.summary = @model.description
|
||||
|
||||
render: ->
|
||||
methods = {}
|
||||
|
||||
if @model.description?
|
||||
@model.summary = @model.description
|
||||
|
||||
$(@el).html(Handlebars.templates.resource(@model))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user