Skip to content

Instantly share code, notes, and snippets.

@lukemorton
Created February 21, 2014 09:55
Show Gist options
  • Save lukemorton/9131612 to your computer and use it in GitHub Desktop.
Save lukemorton/9131612 to your computer and use it in GitHub Desktop.
class ParentView extends Uniform
constructor: (settings) ->
if settings.el
return unless settings.el.length?
super
elements: (add) ->
add('component_one', '.component-one')
add('component_two', '.component-two')
init: ->
new ComponentOneView(el: @component_one)
new ComponentTwoView(el: @component_two)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment