remove unreachable code

pull/942/head
Rich Harris 8 years ago
parent e7e910d1be
commit 121b8a1a0c

@ -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}`

Loading…
Cancel
Save