Skip to content

Commit c866fd9

Browse files
author
Markus Amalthea Magnuson
committed
simpiler -> simpler
1 parent 3a446fd commit c866fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

page/events/event-delegation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ $("#list").on( "click", "a", function( event ) {
8989
```
9090
This simply passes the `.is()` method a selector to see if the element"s `href` attributes starts with "http". Also we have removed the `event.preventDefault();` statement, this is because we want the default action to happen (which is to following the `href`)
9191

92-
We can actually take this a step further and make our code simpiler and more concise by allowing the selector argument to `.on()` do our logic for us.
92+
We can actually take this a step further and make our code simpler and more concise by allowing the selector argument to `.on()` do our logic for us.
9393
```
9494
// attach a delegated event with a more refined selector
9595
$("#list").on( "click", "a[href^=http]", function( event ) {

0 commit comments

Comments
 (0)