1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/js/fat_arrow.js

17 lines
464 B
JavaScript
Raw Normal View History

2010-01-13 23:24:45 -05:00
(function(){
var Account;
Account = function Account(customer, cart) {
var __a;
2010-01-13 23:24:45 -05:00
this.customer = customer;
this.cart = cart;
__a = $('.shopping_cart').bind('click', (function(__this) {
var __func = function(event) {
2010-01-17 18:12:59 -05:00
return this.customer.purchase(this.cart);
2010-01-13 23:24:45 -05:00
};
return (function() {
return __func.apply(__this, arguments);
2010-01-13 23:24:45 -05:00
});
})(this));
2010-01-13 23:24:45 -05:00
return Account === this.constructor ? this : __a;
};
})();