Skip to content

Commit

Permalink
Merge pull request sveltejs#2565 from ericdfields/patch-1
Browse files Browse the repository at this point in the history
Change use of "e.g." to "for example"
  • Loading branch information
Rich-Harris authored Apr 26, 2019
2 parents 943ac09 + 1d61e48 commit 3bbccc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/content/tutorial/05-events/03-event-modifiers/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ DOM event handlers can have *modifiers* that alter their behaviour. For example,

The full list of modifiers:

* `preventDefault` — calls `event.preventDefault()` before running the handler. Useful for e.g. client-side form handling
* `preventDefault` — calls `event.preventDefault()` before running the handler. Useful for client-side form handling, for example.
* `stopPropagation` — calls `event.stopPropagation()`, preventing the event reaching the next element
* `passive` — improves scrolling performance on touch/wheel events (Svelte will add it automatically where it's safe to do so)
* `capture` — fires the handler during the *capture* phase instead of the *bubbling* phase ([MDN docs](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture))
* `once` — remove the handler after the first time it runs

You can chain modifiers together, e.g. `on:click|once|capture={...}`.
You can chain modifiers together, e.g. `on:click|once|capture={...}`.

0 comments on commit 3bbccc5

Please sign in to comment.