mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
trying out new arrows for function literals -> is a function, => is a bound function
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Account: (customer, cart) =>
|
||||
Account: (customer, cart) ->
|
||||
this.customer: customer
|
||||
this.cart: cart
|
||||
|
||||
$('.shopping_cart').bind 'click', (event) ==>
|
||||
$('.shopping_cart').bind 'click', (event) =>
|
||||
this.customer.purchase this.cart
|
||||
Reference in New Issue
Block a user