mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
events subclass Event instead of using CustomEvent now
This commit is contained in:
@@ -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 }));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user