moved from render to init method

This commit is contained in:
Tony Tam
2015-02-18 21:05:36 -08:00
committed by Mohsen Azimi
parent 352e04997e
commit c847551ac4

View File

@@ -3,12 +3,12 @@ class ResourceView extends Backbone.View
@auths = opts.auths @auths = opts.auths
if "" is @model.description if "" is @model.description
@model.description = null @model.description = null
if @model.description?
@model.summary = @model.description
render: -> render: ->
methods = {} methods = {}
if @model.description?
@model.summary = @model.description
$(@el).html(Handlebars.templates.resource(@model)) $(@el).html(Handlebars.templates.resource(@model))