Files
openfoodnetwork/app/assets/javascripts/darkswarm/services/cart.js.coffee
2014-07-18 11:21:51 +10:00

10 lines
253 B
CoffeeScript

Darkswarm.factory 'Cart', (CurrentOrder)->
# Handles syncing of current cart/order state to server
new class Cart
order: CurrentOrder.order
line_items: CurrentOrder.order.line_items
constructor: ->
console.log @order.line_items