mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
6 lines
No EOL
141 B
CoffeeScript
6 lines
No EOL
141 B
CoffeeScript
Account: (customer, cart) ->
|
|
@customer: customer
|
|
@cart: cart
|
|
|
|
$('.shopping_cart').bind 'click', (event) =>
|
|
@customer.purchase @cart |