Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(config) {
this.uniqueId = utils.generateUUID();
this.isGalleryGroup = true;
if (config.dto && config.dto.dto) {
config.dto = config.dto.dto; //defence patch due to mis-use of item-core
if (utils.isDev()) {
console.warn('Item core is created with already existing item core');
}
}
this.dto = Object.assign({}, config.dto);
if (config.scheme) {
this.processScheme(config.scheme);
} else {
this.processScheme(new Group({ dto: config.dto }).scheme);
}
if (config.items) {
this.items = config.items;
} else {
console.warn('Pro Gallery created Gallery Group without items', config);
}
}