Skip to content

Commit 891f1d1

Browse files
committed
Merge branch 'syduki-master'
2 parents 0ac5d12 + 2a66a2d commit 891f1d1

File tree

4 files changed

+274
-273
lines changed

4 files changed

+274
-273
lines changed

frameworks/keyed/karyon/app.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ const actions = [
3636
['Create 1,000 rows', 'run', () => rows(create(1000))],
3737
['Create 10,000 rows', 'runlots', () => rows(create(10000))],
3838
['Append 1,000 rows', 'add', () => rows([...rows(), ...create(1000)])],
39+
['Update every 10th row', 'update', () => State.batch(() => {
40+
for (let r = rows(), i = 0; i < r.length; i += 10)
41+
r[i]?.text(`${r[i].text()} !!!`);
42+
})],
3943
['Clear', 'clear', () => rows([])],
40-
['Update every 10th row', 'update', () => {
41-
for (let i = 0, all = rows(), row; i < all.length; i += 10)
42-
(row = all[i])?.text(`${row.text()} !!!`);
43-
}],
4444
['Swap Rows', 'swaprows', () => {
45-
const all = rows();
46-
[all[1], all[998]] = [all[998], all[1]], rows([...all]);
45+
const r = rows();
46+
[r[1], r[998]] = [r[998], r[1]], rows([...r]);
4747
}]].map(([content, id, click]) =>
4848
({class: 'col-sm-6 smallpad', content:
4949
{is: 'button', id, class: 'btn btn-primary btn-block',

frameworks/keyed/karyon/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
<title>Karyon</title>
66
<link href="/css/currentStyle.css" rel="stylesheet"/>
77
<script type="module" src="app.bundle.js"></script>
8+
</head>
89
<body></body>
910
</html>

0 commit comments

Comments
 (0)