PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/documentation/coffee/fat_arrow.coffee

http://github.com/jashkenas/coffee-script
CoffeeScript | 6 lines | 5 code | 1 blank | 0 comment | 0 complexity | 8459fedacc45aa48316ad9a92adf897f MD5 | raw file
1Account = (customer, cart) ->
2  @customer = customer
3  @cart = cart
4
5  $('.shopping_cart').on 'click', (event) =>
6    @customer.purchase @cart