2010-07-29 04:51:35 +00:00
|
|
|
var Account;
|
|
|
|
var __bind = function(func, context) {
|
2010-10-07 01:13:11 +00:00
|
|
|
return function() { return func.apply(context, arguments); };
|
|
|
|
};
|
2010-07-29 04:51:35 +00:00
|
|
|
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));
|
|
|
|
};
|