wc.render.updateContext (id, updates)
The wc.render.updateContext function retrieves the render context with
the specified ID and applies the updates that are found in the specified updates
object. After a context object is updated, the framework automatically calls all the
renderContextChangedHandler methods of all the controllers.
Example
wc.render.updateContext('editShippingAddressContext',{shippingAddress:thisShippingAddress,addressType:
thisAddressType});
Parameters
- id
- (String) The render context ID.
- updates
- (Object) The render context updates. The properties of the object are added to the render context. Properties that have an undefined value are removed from the render context.