Skip to content
This repository was archived by the owner on Aug 20, 2023. It is now read-only.

Commit fe88486

Browse files
committed
chore(lit-html-for-docs): new region
1 parent 1045e15 commit fe88486

File tree

1 file changed

+5
-1
lines changed
  • frameworks/keyed/lit-html-for-doc/src

1 file changed

+5
-1
lines changed

frameworks/keyed/lit-html-for-doc/src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ const clear = () => {
2626
data = [];
2727
_render();
2828
};
29+
30+
//#region interact
2931
const interact = e => {
3032
const td = e.target.closest('td');
3133
const interaction = td.getAttribute('data-interaction');
@@ -36,6 +38,9 @@ const interact = e => {
3638
select(id);
3739
}
3840
};
41+
//#endregion interact
42+
43+
//#region update
3944
const del = id => {
4045
const idx = data.findIndex(d => d.id === id);
4146
data.splice(idx, 1);
@@ -57,7 +62,6 @@ const swapRows = () => {
5762
}
5863
_render();
5964
};
60-
//#region update
6165
const update = () => {
6266
for (let i = 0; i < data.length; i += 10) {
6367
const item = data[i];

0 commit comments

Comments
 (0)