remove ref to prevent_sidebar_scroll and unused vars

pull/2466/head
Luca Bonavita 5 years ago
parent 159ea061d0
commit 64d397844f

@ -33,12 +33,7 @@
}); });
</script> </script>
<ul <ul bind:this={ul} class="examples-toc">
bind:this={ul}
class="examples-toc"
on:mouseenter="{() => prevent_sidebar_scroll = true}"
on:mouseleave="{() => prevent_sidebar_scroll = false}"
>
{#each sections as section} {#each sections as section}
<li> <li>
<span class="section-title"> <span class="section-title">

@ -1,6 +1,6 @@
<!-- FIXME sometimes it adds a trailing slash when landing --> <!-- FIXME sometimes it adds a trailing slash when landing -->
<script context="module"> <script context="module">
export async function preload({params, query}) { export async function preload() {
const sections = await this.fetch(`examples.json`).then(r => r.json()); const sections = await this.fetch(`examples.json`).then(r => r.json());
const title_by_slug = sections.reduce((acc, {examples}) => { const title_by_slug = sections.reduce((acc, {examples}) => {
examples.forEach(({slug, title}) => { examples.forEach(({slug, title}) => {

Loading…
Cancel
Save