Skip to content

Instantly share code, notes, and snippets.

@willrjmarshall
Created September 16, 2011 05:46
Show Gist options
  • Save willrjmarshall/1221290 to your computer and use it in GitHub Desktop.
Save willrjmarshall/1221290 to your computer and use it in GitHub Desktop.
Backbone hates me
#= require_self
#= require_tree ./templates
#= require_tree ./models
#= require_tree ./views
#= require_tree ./routers
window.Opjam =
Models: {}
Collections: {}
Routers: {}
Views: {},
init: ->
player_view = new Opjam.Views.PlayerView
class Opjam.Views.PlayerView extends Backbone.View
el: $('#test')
events:
"click #test": "myFunction"
"load body" : "myFunction"
myFunction: (e)=>
alert(e)
$(document).ready ->
Opjam.init()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment