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