wcRenderContext.checkIdDefined (id)
The wcRenderContext.checkIdDefined function checks if a render context with the specified ID already exists. It returns true if there is an existing render context defined, false otherwise.
Example
if (!wcRenderContext.checkIdDefined(contextName)) {
wcRenderContext.declare(contextName, [], {shipmentDetailsArea: "update"});
}
Parameters
- id
- (String) The render context ID.