jashkenas--coffeescript/documentation/js/fat_arrow.js

16 lines
391 B
JavaScript
Raw Normal View History

2010-01-14 04:24:45 +00:00
(function(){
var Account;
2010-05-15 05:18:05 +00:00
Account = function(customer, cart) {
2010-01-14 04:24:45 +00:00
this.customer = customer;
this.cart = cart;
return $('.shopping_cart').bind('click', (function(__this) {
var __func = function(event) {
2010-01-17 23:12:59 +00:00
return this.customer.purchase(this.cart);
};
return (function() {
return __func.apply(__this, arguments);
});
})(this));
2010-01-14 04:24:45 +00:00
};
2010-02-24 23:27:10 +00:00
})();