Skip to content

Instantly share code, notes, and snippets.

@davidyang
Created February 17, 2011 04:20
Show Gist options
  • Save davidyang/830968 to your computer and use it in GitHub Desktop.
Save davidyang/830968 to your computer and use it in GitHub Desktop.
class nypl.ui.AccountView extends Backbone.View
initialize: =>
super
@template = nypl['myaccount']
@el = window.$('.ui-page-active')
@render()
events:
"click a" : "onSubmit"
render: =>
@el.html(@template())
nypl.app.refreshStyles(@el)
s@delegateEvents()
onSubmit: (e) ->
console.log('hello')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment