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