1/** 2 * @file 3 * CRRender implementation. 4 */ 5 6/** 7 * CRRender function. 8 * 9 * @param element 10 * Element in DOM. 11 * @param component_name 12 * Component name. 13 * @param settings 14 * Configuration and props. 15 * @constructor 16 */ 17function CRRender(element, component_name, settings) { 18 // Use try/catch for any error. 19 try { 20 if (CRWidgets[component_name]) { 21 // Render component. 22 CRWidgets[component_name](element, settings); 23 } 24 else { 25 // Show the problem. 26 element.innerHTML = 'Block ' + "<strong>" + component_name + "</strong>" + ' is empty client component'; 27 } 28 } 29 catch (exception) { 30 // Show the error. 31 element.innerHTML = 'Client component is broken.' + "<br/>" + exception; 32 } 33}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.