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

16 lines
399 B
JavaScript
Raw Normal View History

2010-01-14 04:24:45 +00:00
(function(){
var Account;
Account = function Account(customer, cart) {
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);
2010-01-14 04:24:45 +00:00
};
return (function() {
return __func.apply(__this, arguments);
2010-01-14 04:24:45 +00:00
});
})(this));
2010-01-14 04:24:45 +00:00
};
2010-02-24 23:27:10 +00:00
})();