Skip to content

Instantly share code, notes, and snippets.

@GeorgeErickson
Created June 4, 2012 17:55
Show Gist options
  • Save GeorgeErickson/2869852 to your computer and use it in GitHub Desktop.
Save GeorgeErickson/2869852 to your computer and use it in GitHub Desktop.
script loading
class app.view.ProfileListView extends Backbone.View
events:
"click li.js_profile": "select_click_person"
"click li.js_next_page": "next_page"
"click li.js_prev_page": "prev_page"
"click .close": "filter_x_click"
"click .order_buttons button": "order_by"
initialize: ->
@loading_overlay_el = $('#js_overlay_'+@options.name)
#bind events
app.vent.bind 'store:reset', @render, @
app.vent.bind 'select:person', @select_person, @
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment