/documentation/js/fat_arrow.js

http://github.com/jashkenas/coffee-script · JavaScript · 12 lines · 10 code · 1 blank · 1 comment · 0 complexity · c0d8dd790d1725c52c6e95ffa2c595c1 MD5 · raw file

  1. // Generated by CoffeeScript 1.10.0
  2. var Account;
  3. Account = function(customer, cart) {
  4. this.customer = customer;
  5. this.cart = cart;
  6. return $('.shopping_cart').on('click', (function(_this) {
  7. return function(event) {
  8. return _this.customer.purchase(_this.cart);
  9. };
  10. })(this));
  11. };