Skip to content

Instantly share code, notes, and snippets.

@devmanhinton
Created October 22, 2013 16:00
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 devmanhinton/7103303 to your computer and use it in GitHub Desktop.
Save devmanhinton/7103303 to your computer and use it in GitHub Desktop.
Way to include views
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