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