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

updating documentation for 0.3

This commit is contained in:
Jeremy Ashkenas 2010-01-26 23:23:59 -05:00
parent 3524d618d8
commit ca0a65ab95
14 changed files with 200 additions and 214 deletions

View file

@ -0,0 +1,17 @@
(function(){
var Account;
Account = function Account(customer, cart) {
var __a;
this.customer = customer;
this.cart = cart;
__a = $('.shopping_cart').bind('click', (function(__this) {
var __func = function(event) {
return this.customer.purchase(this.cart);
};
return (function() {
return __func.apply(__this, arguments);
});
})(this));
return Account === this.constructor ? this : __a;
};
})();