Skip to content

Commit cee9b30

Browse files
committed
Inside Event Handling Function: Remove hard breaks in prose
1 parent 8c92da7 commit cee9b30

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

page/events/inside-event-handling-function.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@ source: http://jqfundamentals.com/legacy
55
attribution:
66
- jQuery Fundamentals
77
---
8-
Every event handling function receives an event object, which contains many
9-
properties and methods. The event object is most commonly used to prevent the
10-
default action of the event via the `.preventDefault()` method. However, the event
11-
object contains a number of other useful properties and methods, including:
8+
9+
Every event handling function receives an event object, which contains many properties and methods. The event object is most commonly used to prevent the default action of the event via the `.preventDefault()` method. However, the event object contains a number of other useful properties and methods, including:
1210

1311
#### pageX, pageY
1412

15-
The mouse position at the time the event occurred, relative to the top left of
16-
the page.
13+
The mouse position at the time the event occurred, relative to the top left of the page.
1714

1815
#### type
1916

@@ -39,10 +36,7 @@ Prevent the default action of the event (e.g. following a link).
3936

4037
Stop the event from bubbling up to other elements.
4138

42-
In addition to the event object, the event handling function also has access to
43-
the DOM element that the handler was bound to via the keyword `this`. To turn
44-
the DOM element into a jQuery object that we can use jQuery methods on, we
45-
simply do `$( this )`, often following this idiom:
39+
In addition to the event object, the event handling function also has access to the DOM element that the handler was bound to via the keyword `this`. To turn the DOM element into a jQuery object that we can use jQuery methods on, we simply do `$( this )`, often following this idiom:
4640

4741
```
4842
var elem = $( this );

0 commit comments

Comments
 (0)