2010-01-13 23:24:45 -05:00
|
|
|
(function(){
|
|
|
|
var Account;
|
|
|
|
Account = function Account(customer, cart) {
|
2010-01-14 14:44:03 -05:00
|
|
|
var __a;
|
2010-01-13 23:24:45 -05:00
|
|
|
this.customer = customer;
|
|
|
|
this.cart = cart;
|
2010-01-14 14:44:03 -05:00
|
|
|
__a = $('.shopping_cart').bind('click', (function(__this) {
|
|
|
|
var __func = function(event) {
|
2010-01-17 18:12:59 -05:00
|
|
|
return this.customer.purchase(this.cart);
|
2010-01-13 23:24:45 -05:00
|
|
|
};
|
|
|
|
return (function() {
|
2010-01-14 14:44:03 -05:00
|
|
|
return __func.apply(__this, arguments);
|
2010-01-13 23:24:45 -05:00
|
|
|
});
|
2010-01-14 14:44:03 -05:00
|
|
|
})(this));
|
2010-01-13 23:24:45 -05:00
|
|
|
return Account === this.constructor ? this : __a;
|
|
|
|
};
|
|
|
|
})();
|