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

CoffeeScript 1.1.3

This commit is contained in:
Jeremy Ashkenas 2011-11-08 18:01:45 -05:00
parent d592d2c9cb
commit 3e41659095
19 changed files with 602 additions and 480 deletions

View file

@ -1,10 +1,10 @@
var Account;
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
Account = function(customer, cart) {
var _this = this;
this.customer = customer;
this.cart = cart;
return $('.shopping_cart').bind('click', __bind(function(event) {
return this.customer.purchase(this.cart);
}, this));
return $('.shopping_cart').bind('click', function(event) {
return _this.customer.purchase(_this.cart);
});
};