events subclass Event instead of using CustomEvent now

This commit is contained in:
Cory LaViska
2024-05-31 14:28:19 -04:00
parent f32175bf1e
commit 081ef02b72
119 changed files with 829 additions and 583 deletions

View File

@@ -9,6 +9,14 @@ export function getAllComponents(metadata) {
const path = module.path;
if (component) {
// Calling `new Event()` adds a blank entry into the CEM, so we'll filter them out here
if (component.events) {
component.events = component.events.filter(event => {
return event.name ? true : false;
});
}
// component.events = component.events.filter(event => !!event.name);
allComponents.push(Object.assign(component, { path }));
}
}