2010-07-29 04:51:35 +00:00
|
|
|
var Account;
|
2010-11-21 17:38:27 +00:00
|
|
|
var __bind = function(fn, me){ return function(){ return fn.apply(me, 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));
|
|
|
|
};
|