Remove unnecessary code in "bind-this" example

In https://svelte.dev/examples#bind-this some code is superfluous
pull/3514/head
Reto Trinkler 5 years ago committed by Conduitry
parent c6b53b6f98
commit b1a8c96e18

@ -2,9 +2,6 @@
import { onMount } from 'svelte'; import { onMount } from 'svelte';
let canvas; let canvas;
let running = false;
const r = Math.random();
onMount(() => { onMount(() => {
const ctx = canvas.getContext('2d'); const ctx = canvas.getContext('2d');

Loading…
Cancel
Save