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
2010-07-29 00:51:35 -04:00

11 lines
No EOL
336 B
JavaScript

var Account;
var __bind = function(func, context) {
return function(){ return func.apply(context, arguments); };
};
Account = function(customer, cart) {
this.customer = customer;
this.cart = cart;
return $('.shopping_cart').bind('click', __bind(function(event) {
return this.customer.purchase(this.cart);
}, this));
};