Skip to content

Instantly share code, notes, and snippets.

@phpdude

phpdude/cart.coffee Secret

Last active Nov 6, 2015
Embed
What would you like to do?
aaaa
class ShopCart
@setCity: (city_id, callback) ->
$.post BACKEND_URLS['cart_env'], city_id: city_id, ->
if callback
callback()
@setDate: (date, callback) ->
$.post BACKEND_URLS['cart_env'], date: date, ->
if callback
callback()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.