 Shop.initCart = ()->
   @cart.initCart()
 
-Shop.setItem = (id, quantity, locked=false)->
+Shop.setItem = (id, quantity, locked=false) ->
   m.trigger Events.TryUpdateItem, id
   p = @cart.set id, quantity, locked
   if @promise != p

#   }
# ]
#
#Format of opts.referralProgram
# Referral Program Object

Shop.riot = riot

Shop.analytics = analytics

Shop.isEmpty = ->
  items = @data.get 'order.items'
  return items.length == 0

getQueries = ()->
  search = /([^&=]+)=?([^&]*)/g

    @data.set 'order.shippingAddress', checkoutShippingAddress
    store.remove 'checkout-shippingAddress'

  @client = new Api
    key:      opts.key
    endpoint: opts.endpoint

