Sha256: 9b0d4257d06ed154fd58041a354bc6b642546e37ac6d5e24c0534cae06e7a880
Contents?: true
Size: 721 Bytes
Versions: 2
Compression:
Stored size: 721 Bytes
Contents
RightnowOms.cartController = Ember.Object.create store: RightnowOms.store load: (cart) -> RightnowOms.store.load(RightnowOms.Cart, cart.id, cart) @set('content', RightnowOms.store.find(RightnowOms.Cart, cart.id)) reload: -> @set('content', RightnowOms.store.find(RightnowOms.Cart, @get('content').get('id'))) # item: a hash addCartItem: (item) -> cartItem = @get('content').addCartItem(item) @store.commit() cartItem increaseCartItem: (id) -> @get('content').increaseCartItem(id) @store.commit() decreaseCartItem: (id) -> @get('content').decreaseCartItem(id) @store.commit() removeCartItem: (id) -> @get('content').removeCartItem(id) @store.commit()
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rightnow_oms-0.0.4 | app/assets/javascripts/rightnow_oms/app/controllers/cart.js.coffee |
rightnow_oms-0.0.3 | app/assets/javascripts/rightnow_oms/app/controllers/cart.js.coffee |