Skip to content

Commit 4d165d4

Browse files
committed
{fix} replace self for this
Turns out mixing rust and javascript can be... confusing at times.
1 parent bf1efb2 commit 4d165d4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/js/playground-io.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ customElements.define(
6969

7070
this.append(input);
7171

72-
const name = attr(self, 'name');
73-
const index = +attr(self, 'index');
72+
const name = attr(this, 'name');
73+
const index = +attr(this, 'index');
7474

7575
function update() {
7676
let app =
@@ -121,8 +121,8 @@ customElements.define(
121121
this.firstChild.remove();
122122
}
123123

124-
const name = attr(self, 'name');
125-
const index = +attr(self, 'index');
124+
const name = attr(this, 'name');
125+
const index = +attr(this, 'index');
126126

127127
const button = create('button');
128128
const code = create('code');

src/js/playground-io.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)