Skip to content

Instantly share code, notes, and snippets.

@Sephi-Chan
Created May 3, 2012 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sephi-Chan/2585965 to your computer and use it in GitHub Desktop.
Save Sephi-Chan/2585965 to your computer and use it in GitHub Desktop.
render: ->
$html = $(@template(vehicle: @vehicle))
$groups = $html.filter('.groups')
_(@groups).each (group)=>
subview = new App.Views.AttributesGroup(group: group, vehicle: @vehicle)
$groups.append(subview.render().el)
$(@el).html($html)
@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment