Skip to content

Instantly share code, notes, and snippets.

@akfish
Created April 30, 2014 02:40
Show Gist options
  • Save akfish/d8dee4c93327f573ec26 to your computer and use it in GitHub Desktop.
Save akfish/d8dee4c93327f573ec26 to your computer and use it in GitHub Desktop.
Coffee Meets Backbone

Override Constructor

class GlContainer extends Backbone.View
  constructor: (@selector) ->
    super arguments

Use =>

  initialize: ->
    # Don't need:
    # _.bindAll @, ['render']
    @render()
                        
  render: => # Not `->`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment