fix malformed code in window binding event handlers (#1963)

pull/1964/head
Conduitry 6 years ago
parent dcad65b118
commit 58b3ea63cc

@ -114,7 +114,7 @@ export default class WindowWrapper extends Wrapper {
});
block.event_listeners.push(deindent`
@addListener(window, "${event}", ctx.${handler_name});
@addListener(window, "${event}", ctx.${handler_name})
`);
}
@ -179,4 +179,4 @@ export default class WindowWrapper extends Wrapper {
`);
}
}
}
}

@ -0,0 +1,3 @@
export default {
html: '<button>Click</button>'
};

@ -0,0 +1,2 @@
<svelte:window bind:innerWidth={width} bind:innerHeight={height}/>
<button on:click={() => {}}>Click</button>
Loading…
Cancel
Save