Skip to content

Commit 2f7524f

Browse files
Update
1 parent 34e8060 commit 2f7524f

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

doc/doc.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<section>
2+
<header>
3+
<h2></h2>
4+
</header>
5+
<article>
6+
<pre>
7+
8+
</pre>
9+
</article>
10+
<footer></footer>
11+
</section>
12+
<sec

doc/index.html

Whitespace-only changes.

docs/client.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,19 @@ myList.addEventListener('add', function (e) {})
167167
myList.addEventListener('remove', function (e) {})
168168
```
169169

170-
DOM Level 1 events are also supported
170+
DOM Level 0 events are supported
171171

172172
```html
173-
<x-todos theme="light" title="My Todos" onremove="...">
173+
<x-todos theme="light" title="My Todos" onremove="{myHandler()}">
174174
</x-todos>
175175
```
176176

177+
as are DOM Level 1:
178+
179+
```js
180+
myList.onremove = function (e) {}
181+
```
182+
177183
`emit(name, detail)` is used to emit an event.
178184

179185
## Event Delegation

0 commit comments

Comments
 (0)