mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
11 lines
No EOL
333 B
JavaScript
11 lines
No EOL
333 B
JavaScript
var Account;
|
|
var __bind = function(func, context) {
|
|
return function() { return func.apply(context, arguments); };
|
|
};
|
|
Account = function(customer, cart) {
|
|
this.customer = customer;
|
|
this.cart = cart;
|
|
return $('.shopping_cart').bind('click', __bind(function(event) {
|
|
return this.customer.purchase(this.cart);
|
|
}, this));
|
|
}; |