Skip to content

Commit de4856b

Browse files
committed
Event Helpers: Remove hard breaks in prose
1 parent 61a57ce commit de4856b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

page/events/event-helpers.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ source: http://jqfundamentals.com/legacy
55
attribution:
66
- jQuery Fundamentals
77
---
8+
89
jQuery offers two event-related helper functions that save you a few keystrokes.
910

1011
### `.hover()`
1112

12-
The [`.hover()`](http://api.jquery.com/hover/) method lets you pass one or two functions to be run when the
13-
`mouseenter` and `mouseleave` events occur on an element. If you pass one
14-
function, it will be run for both events; if you pass two functions, the first
15-
will run for `mouseenter`, and the second will run for `mouseleave`.
13+
The [`.hover()`](http://api.jquery.com/hover/) method lets you pass one or two functions to be run when the `mouseenter` and `mouseleave` events occur on an element. If you pass one function, it will be run for both events; if you pass two functions, the first will run for `mouseenter`, and the second will run for `mouseleave`.
1614

1715
**Note:** Prior to jQuery 1.4, the `.hover()` method required two functions.
1816

@@ -27,11 +25,7 @@ $( "#menu li" ).hover(function() {
2725

2826
<div class="warning">Note: This method signature was removed in jQuery 1.9. jQuery also provides an animation method named .toggle() that toggles the visibility of elements.</div>
2927

30-
The [`.toggle()`](http://api.jquery.com/toggle-event/) method is triggered by the "click" event and accepts two or
31-
more functions. Each time the click event occurs, the next function in the
32-
list is called. Generally, `.toggle()` is used with just two functions;
33-
however, it will accept an unlimited number of functions. Be careful, though:
34-
providing a long list of functions can be difficult to debug.
28+
The [`.toggle()`](http://api.jquery.com/toggle-event/) method is triggered by the "click" event and accepts two or more functions. Each time the click event occurs, the next function in the list is called. Generally, `.toggle()` is used with just two functions; however, it will accept an unlimited number of functions. Be careful, though: providing a long list of functions can be difficult to debug.
3529

3630
```
3731
// The toggle helper function

0 commit comments

Comments
 (0)