Created
May 14, 2011 21:01
-
-
Save superchris/972628 to your computer and use it in GitHub Desktop.
A backbone view creating another view using the same element
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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