'notification': require('./notification'),
'chapter-toggle': require('./chapter-toggle'),
'expand-toggle': require('./expand-toggle'),
+ 'entity-selector-popup': require('./entity-selector-popup'),
+ 'entity-selector': require('./entity-selector'),
+ 'sidebar': require('./sidebar'),
+ 'page-picker': require('./page-picker'),
};
window.components = {};
if (typeof window.components[name] === "undefined") window.components[name] = [];
for (let j = 0, jLen = elems.length; j < jLen; j++) {
let instance = new component(elems[j]);
+ if (typeof elems[j].components === 'undefined') elems[j].components = {};
+ elems[j].components[name] = instance;
window.components[name].push(instance);
}
}
\ No newline at end of file