Created
October 22, 2013 16:00
-
-
Save devmanhinton/7103303 to your computer and use it in GitHub Desktop.
Way to include views
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
Add EndDash.View.extend | |
== Client can call EndDash.view.extend({ | |
.... Normal Backbone View things .... | |
}) | |
Under the hood will return "Backbone.View.extend({ | |
.... Same Normal Backbone View things .... | |
}) | |
And also register it internally. | |
Pros: Way to include veiws in EndDash with very little lift on the user's part | |
Not too intrusive, not silently hooking into Backbone | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment