mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
16 lines
391 B
JavaScript
16 lines
391 B
JavaScript
(function(){
|
|
var Account;
|
|
Account = function(customer, cart) {
|
|
this.customer = customer;
|
|
this.cart = cart;
|
|
return $('.shopping_cart').bind('click', (function(__this) {
|
|
var __func = function(event) {
|
|
return this.customer.purchase(this.cart);
|
|
};
|
|
return (function() {
|
|
return __func.apply(__this, arguments);
|
|
});
|
|
})(this));
|
|
};
|
|
})();
|