PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 2var Account;
 3
 4Account = function(customer, cart) {
 5  this.customer = customer;
 6  this.cart = cart;
 7  return $('.shopping_cart').on('click', (function(_this) {
 8    return function(event) {
 9      return _this.customer.purchase(_this.cart);
10    };
11  })(this));
12};