2010-01-14 04:24:45 +00:00
|
|
|
(function(){
|
|
|
|
var Account;
|
2010-05-15 05:18:05 +00:00
|
|
|
Account = function(customer, cart) {
|
2010-01-14 04:24:45 +00:00
|
|
|
this.customer = customer;
|
|
|
|
this.cart = cart;
|
2010-06-28 04:19:58 +00:00
|
|
|
return $('.shopping_cart').bind('click', (function(__this) {
|
|
|
|
var __func = function(event) {
|
2010-01-17 23:12:59 +00:00
|
|
|
return this.customer.purchase(this.cart);
|
2010-06-28 04:19:58 +00:00
|
|
|
};
|
|
|
|
return (function() {
|
|
|
|
return __func.apply(__this, arguments);
|
|
|
|
});
|
|
|
|
})(this));
|
2010-01-14 04:24:45 +00:00
|
|
|
};
|
2010-02-24 23:27:10 +00:00
|
|
|
})();
|