mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
6 lines
141 B
CoffeeScript
6 lines
141 B
CoffeeScript
Account: (customer, cart) ->
|
|
@customer: customer
|
|
@cart: cart
|
|
|
|
$('.shopping_cart').bind 'click', (event) =>
|
|
@customer.purchase @cart |