Skip to content

Commit

Permalink
Merge pull request #62 from milafrerichs/fix-sapper-compilation
Browse files Browse the repository at this point in the history
fix: use bind instead of let
  • Loading branch information
milafrerichs authored Sep 20, 2019
2 parents 8f735fd + b3cfd38 commit daede96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "javascript-repl",
"svelte": "src/Repl.svelte",
"module": "index.mjs",
"version": "0.4.2",
"version": "0.4.3",
"description": "",
"main": "index.js",
"author": "Mila Frerichs <[email protected]>",
Expand Down
6 changes: 3 additions & 3 deletions src/Repl.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
let editor;
let manualUpdates = false;
let currentContent = '';
let iframeComtainerWidth;
let iframeComtainerHeight;
let width;
let height;
const layouts = new Map([
[ 'default', Default ],
Expand Down Expand Up @@ -143,7 +143,7 @@
}
</style>

<svelte:component this={selectedLayout} {cssStyles} let:width={width} let:height={height} >
<svelte:component this={selectedLayout} {cssStyles} bind:width={width} bind:height={height} >
<div slot="editor">
<Editor bind:this={editor} on:change={debounceChangeCode}/>
</div>
Expand Down

0 comments on commit daede96

Please sign in to comment.