Skip to content

Instantly share code, notes, and snippets.

@superchris
Created May 14, 2011 21:01
Show Gist options
  • Select an option

  • Save superchris/972628 to your computer and use it in GitHub Desktop.

Select an option

Save superchris/972628 to your computer and use it in GitHub Desktop.
A backbone view creating another view using the same element
class FooView extends Backbone.View
"#button click": "displayBarView"
displayBarView: ->
new BarView(el: @$("#bar_view")).render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment