jashkenas--coffeescript/documentation/js/long_arrow.js

19 lines
538 B
JavaScript
Raw Normal View History

2010-01-14 04:24:45 +00:00
(function(){
var Account;
Account = function Account(customer, cart) {
var __a;
2010-01-14 04:24:45 +00:00
this.customer = customer;
this.cart = cart;
__a = $('.shopping_cart').bind('click', (function(__this) {
var __func = function(event) {
var __b;
__b = this.customer.purchase(this.cart);
return Account === this.constructor ? this : __b;
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
return Account === this.constructor ? this : __a;
};
})();