function init()

in ArticleTemplates/assets/js/bootstraps/atoms.js [6:21]


function init() {
    const atomTypes = GU.opts.atoms;
    Object.keys(atomTypes).forEach(t => {
        const f = atomTypes[t];
        if (t === 'chart' || typeof f.default !== 'function' || f.default.length !== 1) {
            return;
        }
        bootAtomType(t, atomTypes[t]);
    });
    if ('chart' in atomTypes) {
        initCharts();
    }
    if ('interactive' in atomTypes) {
        initInteractives();
    }
}