We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf067a2 commit 945e73bCopy full SHA for 945e73b
frameworks/keyed/karyon/app.js
@@ -37,13 +37,13 @@ const actions = [
37
['Create 10,000 rows', 'runlots', () => rows(create(10000))],
38
['Append 1,000 rows', 'add', () => rows([...rows(), ...create(1000)])],
39
['Update every 10th row', 'update', () => State.batch(() => {
40
- for (let i = 0, all = rows(), row; i < all.length; i += 10)
41
- (row = all[i])?.text(`${row.text()} !!!`);
+ for (let r = rows(), i = 0; i < r.length; i += 10)
+ r[i]?.text(`${r[i].text()} !!!`);
42
})],
43
['Clear', 'clear', () => rows([])],
44
['Swap Rows', 'swaprows', () => {
45
- const all = rows();
46
- [all[1], all[998]] = [all[998], all[1]], rows([...all]);
+ const r = rows();
+ [r[1], r[998]] = [r[998], r[1]], rows([...r]);
47
}]].map(([content, id, click]) =>
48
({class: 'col-sm-6 smallpad', content:
49
{is: 'button', id, class: 'btn btn-primary btn-block',
0 commit comments