0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

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

This commit is contained in:
Conduitry 2019-01-04 20:35:58 -05:00
parent dcad65b118
commit 58b3ea63cc
3 changed files with 7 additions and 2 deletions

View File

@ -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 {
`);
}
}
}
}

View File

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

View File

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