Skip to content

Commit daede96

Browse files
authored
Merge pull request #62 from milafrerichs/fix-sapper-compilation
fix: use bind instead of let
2 parents 8f735fd + b3cfd38 commit daede96

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "javascript-repl",
33
"svelte": "src/Repl.svelte",
44
"module": "index.mjs",
5-
"version": "0.4.2",
5+
"version": "0.4.3",
66
"description": "",
77
"main": "index.js",
88
"author": "Mila Frerichs <mila.frerichs@gmail.com>",

src/Repl.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
let editor;
2222
let manualUpdates = false;
2323
let currentContent = '';
24-
let iframeComtainerWidth;
25-
let iframeComtainerHeight;
24+
let width;
25+
let height;
2626
2727
const layouts = new Map([
2828
[ 'default', Default ],
@@ -143,7 +143,7 @@
143143
}
144144
</style>
145145

146-
<svelte:component this={selectedLayout} {cssStyles} let:width={width} let:height={height} >
146+
<svelte:component this={selectedLayout} {cssStyles} bind:width={width} bind:height={height} >
147147
<div slot="editor">
148148
<Editor bind:this={editor} on:change={debounceChangeCode}/>
149149
</div>

0 commit comments

Comments
 (0)