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

got coffeescript compiling in the browser

This commit is contained in:
Jeremy Ashkenas 2010-02-13 15:25:04 -05:00
parent 79bb0da153
commit a90bf75395
15 changed files with 140 additions and 86 deletions

View file

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