remove ref to prevent_sidebar_scroll and unused vars

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

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

@ -1,6 +1,6 @@
<!-- FIXME sometimes it adds a trailing slash when landing -->
<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 title_by_slug = sections.reduce((acc, {examples}) => {
examples.forEach(({slug, title}) => {

Loading…
Cancel
Save