mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
10 lines
317 B
JavaScript
10 lines
317 B
JavaScript
var Account;
|
|
var __bind = function(fn, me){ return function(){ return fn.apply(me, 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));
|
|
};
|