Skip to content

Commit 94367c9

Browse files
committed
Update Main.js
1 parent bfdcc27 commit 94367c9

File tree

1 file changed

+1
-1
lines changed
  • frameworks/keyed/vanillajs-3/src

1 file changed

+1
-1
lines changed

frameworks/keyed/vanillajs-3/src/Main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ new class App {
44
index = 1; data = [];
55
tbody = document.getElementsByTagName('tbody')[0];
66
constructor() {
7-
this.tbody.onclick = app.onclick();
7+
this.tbody.onclick = this.onclick();
88
for (let key of ['run', 'runlots', 'add', 'update', 'clear', 'swaprows']) {
99
document.getElementById(key).onclick = (e) => { e.stopPropagation(); this[key](); }
1010
}

0 commit comments

Comments
 (0)