diff --git a/src/generators/dom/visitors/Element/meta/Window.ts b/src/generators/dom/visitors/Element/meta/Window.ts index 90bfff55c4..f5cfb23e80 100644 --- a/src/generators/dom/visitors/Element/meta/Window.ts +++ b/src/generators/dom/visitors/Element/meta/Window.ts @@ -83,10 +83,6 @@ export default function visitWindow( const associatedEvent = associatedEvents[attribute.name]; - if (!associatedEvent) { - throw new Error(`Cannot bind to ${attribute.name} on <:Window>`); - } - if (!events[associatedEvent]) events[associatedEvent] = []; events[associatedEvent].push( `${attribute.value.name}: this.${attribute.name}`