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:
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…
Reference in New Issue
Block a user