Skip to content

Commit

Permalink
Support VDOM when load html
Browse files Browse the repository at this point in the history
  • Loading branch information
easylogic committed Jul 6, 2020
1 parent 1b5cc2a commit 46714f3
Show file tree
Hide file tree
Showing 18 changed files with 3,926 additions and 1,587 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,12 @@ This is also possible the css selector.
```js
[CLICK('$list .item:not(.selected)')] (e) {
// do event
console.log(e.$delegateTarget.html())
console.log(e.$dt.html())
}
```
You can run the method only when you click on the `.item` that is not applied to the` .selected` class.

`e.$delegateTarget` points to the element where the actual event occurred.
`e.$dt` points to the element where the actual event occurred.


DOM events can have several PIPE functions.
Expand Down
Loading

0 comments on commit 46714f3

Please sign in to comment.