Merge pull request #2343 from hperrin/patch-1

Remove unused r variable in bind-this tutorial.
pull/2346/head
Rich Harris 6 years ago committed by GitHub
commit e3c0887afc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,10 +2,6 @@
import { onMount } from 'svelte';
let canvas;
let ctx;
let running = false;
const r = Math.random();
onMount(() => {
const ctx = canvas.getContext('2d');
@ -55,4 +51,4 @@
<canvas
width={32}
height={32}
></canvas>
></canvas>

@ -2,10 +2,6 @@
import { onMount } from 'svelte';
let canvas;
let ctx;
let running = false;
const r = Math.random();
onMount(() => {
const ctx = canvas.getContext('2d');
@ -56,4 +52,4 @@
bind:this={canvas}
width={32}
height={32}
></canvas>
></canvas>

Loading…
Cancel
Save