You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll just paste the self-explained code below:
P.S. I tried setting a new value instead of using reset(), same strange behavior.
Template.cartItem.viewmodel
shippingPrice: undefined
updateShippingPrice: ->
if @ship() and not @outOfStock()
Meteor.call 'calculateShipingPrice', @productId(), (error, result) =>
if error
FF.helpers.showInternalError error
else
@shippingPrice result
else
@shippingPrice.reset()
@shippingPrice() # FIXME: Why doesn't work without this line?
# shippingPrice doesn't update if I don't ask for it's value now
The text was updated successfully, but these errors were encountered:
I'll just paste the self-explained code below:
P.S. I tried setting a new value instead of using reset(), same strange
behavior.
Template.cartItem.viewmodel
shippingPrice: undefined
updateShippingPrice: ->
if @Ship() and not @outofstock()
Meteor.call 'calculateShipingPrice', @ProductID(), (error, result) =>
if error
FF.helpers.showInternalError error
else
@shippingPrice result
else
@shippingPrice.reset()
@shippingPrice() # FIXME: Why doesn't work without this line?
# shippingPrice doesn't update if I don't ask for it's value now
I'll just paste the self-explained code below:
P.S. I tried setting a new value instead of using reset(), same strange behavior.
The text was updated successfully, but these errors were encountered: