Skip to content

Instantly share code, notes, and snippets.

@satlavida
Created November 6, 2011 15:26
Show Gist options
  • Save satlavida/1343025 to your computer and use it in GitHub Desktop.
Save satlavida/1343025 to your computer and use it in GitHub Desktop.
window.Events = {}
_.extend Events, Backbone.Events
window.Model = Backbone.Model.extend
window.Collection = Backbone.Collection.extend
window.Router = Backbone.Router.extend
window.View = Backbone.View.extend
addSubview: (ele) ->
@el.append(ele)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment