Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
assignComponentRef = (refName) => {
const component = this;
if (Hf.DEVELOPMENT) {
if (!Hf.isString(refName)) {
Hf.log(`error`, `TitleTextComponent.assignComponentRef - Input component reference name is invalid.`);
}
}
/* helper function to set component ref */
const setComponentRef = function setComponentRef (componentRef) {
component.refCache[refName] = Hf.isDefined(componentRef) ? componentRef : null;
};
return setComponentRef;
}
/**
assignComponentRef = (refName) => {
const component = this;
if (Hf.DEVELOPMENT) {
if (!Hf.isString(refName)) {
Hf.log(`error`, `CaptionTextComponent.assignComponentRef - Input component reference name is invalid.`);
}
}
/* helper function to set component ref */
const setComponentRef = function setComponentRef (componentRef) {
component.refCache[refName] = Hf.isDefined(componentRef) ? componentRef : null;
};
return setComponentRef;
}
/**
assignComponentRef = (refName) => {
const component = this;
if (Hf.DEVELOPMENT) {
if (!Hf.isString(refName)) {
Hf.log(`error`, `InfoTextComponent.assignComponentRef - Input component reference name is invalid.`);
}
}
/* helper function to set component ref */
const setComponentRef = function setComponentRef (componentRef) {
component.refCache[refName] = Hf.isDefined(componentRef) ? componentRef : null;
};
return setComponentRef;
}
/**
assignComponentRef = (refName) => {
const component = this;
if (Hf.DEVELOPMENT) {
if (!Hf.isString(refName)) {
Hf.log(`error`, `ItemViewComponent.assignComponentRef - Input component reference name is invalid.`);
}
}
/* helper function to set component ref */
const setComponentRef = function setComponentRef (componentRef) {
component.refCache[refName] = Hf.isDefined(componentRef) ? componentRef : null;
};
return setComponentRef;
}
/**
assignComponentRef = (refName) => {
const component = this;
if (Hf.DEVELOPMENT) {
if (!Hf.isString(refName)) {
Hf.log(`error`, `LayoutViewComponent.assignComponentRef - Input component reference name is invalid.`);
}
}
/* helper function to set component ref */
const setComponentRef = function setComponentRef (componentRef) {
component.refCache[refName] = Hf.isDefined(componentRef) ? componentRef : null;
};
return setComponentRef;
}
/**