@types/jquery 3.5.29 → 3.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jquery/JQuery.d.ts +80 -80
- jquery/README.md +1 -1
- jquery/package.json +3 -3
jquery/JQuery.d.ts
CHANGED
|
@@ -1574,25 +1574,25 @@ $( "div.test" ).bind({
|
|
|
1574
1574
|
* Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
|
|
1575
1575
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
1576
1576
|
* @param handler A function to execute each time the event is triggered.
|
|
1577
|
-
* @see \`{@link https://api.jquery.com/blur/ }\`
|
|
1577
|
+
* @see \`{@link https://api.jquery.com/blur-shorthand/ }\`
|
|
1578
1578
|
* @since 1.4.3
|
|
1579
1579
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
1580
1580
|
*
|
|
1581
1581
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
1582
1582
|
*
|
|
1583
|
-
* **Solution**: Instead of `.
|
|
1583
|
+
* **Solution**: Instead of `.blur(fn)` use `.on("blur", fn)`. Instead of `.blur()` use `.trigger("blur")`.
|
|
1584
1584
|
*/
|
|
1585
1585
|
blur<TData>(eventData: TData, handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "blur">): this;
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
|
|
1588
1588
|
* @param handler A function to execute each time the event is triggered.
|
|
1589
|
-
* @see \`{@link https://api.jquery.com/blur/ }\`
|
|
1589
|
+
* @see \`{@link https://api.jquery.com/blur-shorthand/ }\`
|
|
1590
1590
|
* @since 1.0
|
|
1591
1591
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
1592
1592
|
*
|
|
1593
1593
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
1594
1594
|
*
|
|
1595
|
-
* **Solution**: Instead of `.
|
|
1595
|
+
* **Solution**: Instead of `.blur(fn)` use `.on("blur", fn)`. Instead of `.blur()` use `.trigger("blur")`.
|
|
1596
1596
|
* @example ````To trigger the blur event on all paragraphs:
|
|
1597
1597
|
```javascript
|
|
1598
1598
|
$( "p" ).blur();
|
|
@@ -1607,13 +1607,13 @@ $( "p" ).blur();
|
|
|
1607
1607
|
* Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
|
|
1608
1608
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
1609
1609
|
* @param handler A function to execute each time the event is triggered.
|
|
1610
|
-
* @see \`{@link https://api.jquery.com/change/ }\`
|
|
1610
|
+
* @see \`{@link https://api.jquery.com/change-shorthand/ }\`
|
|
1611
1611
|
* @since 1.4.3
|
|
1612
1612
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
1613
1613
|
*
|
|
1614
1614
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
1615
1615
|
*
|
|
1616
|
-
* **Solution**: Instead of `.
|
|
1616
|
+
* **Solution**: Instead of `.change(fn)` use `.on("change", fn)`. Instead of `.change()` use `.trigger("change")`.
|
|
1617
1617
|
*/
|
|
1618
1618
|
change<TData>(
|
|
1619
1619
|
eventData: TData,
|
|
@@ -1622,13 +1622,13 @@ $( "p" ).blur();
|
|
|
1622
1622
|
/**
|
|
1623
1623
|
* Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
|
|
1624
1624
|
* @param handler A function to execute each time the event is triggered.
|
|
1625
|
-
* @see \`{@link https://api.jquery.com/change/ }\`
|
|
1625
|
+
* @see \`{@link https://api.jquery.com/change-shorthand/ }\`
|
|
1626
1626
|
* @since 1.0
|
|
1627
1627
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
1628
1628
|
*
|
|
1629
1629
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
1630
1630
|
*
|
|
1631
|
-
* **Solution**: Instead of `.
|
|
1631
|
+
* **Solution**: Instead of `.change(fn)` use `.on("change", fn)`. Instead of `.change()` use `.trigger("change")`.
|
|
1632
1632
|
* @example ````Attaches a change event to the select that gets the text for each selected option and writes them in the div. It then triggers the event for the initial text draw.
|
|
1633
1633
|
```html
|
|
1634
1634
|
<!doctype html>
|
|
@@ -2171,13 +2171,13 @@ $( "#frameDemo" ).contents().find( "a" ).css( "background-color", "#BADA55" );
|
|
|
2171
2171
|
* Bind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
|
|
2172
2172
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
2173
2173
|
* @param handler A function to execute each time the event is triggered.
|
|
2174
|
-
* @see \`{@link https://api.jquery.com/contextmenu/ }\`
|
|
2174
|
+
* @see \`{@link https://api.jquery.com/contextmenu-shorthand/ }\`
|
|
2175
2175
|
* @since 1.4.3
|
|
2176
2176
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
2177
2177
|
*
|
|
2178
2178
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
2179
2179
|
*
|
|
2180
|
-
* **Solution**: Instead of `.
|
|
2180
|
+
* **Solution**: Instead of `.contextmenu(fn)` use `.on("contextmenu", fn)`. Instead of `.contextmenu()` use `.trigger("contextmenu")`.
|
|
2181
2181
|
*/
|
|
2182
2182
|
contextmenu<TData>(
|
|
2183
2183
|
eventData: TData,
|
|
@@ -2186,13 +2186,13 @@ $( "#frameDemo" ).contents().find( "a" ).css( "background-color", "#BADA55" );
|
|
|
2186
2186
|
/**
|
|
2187
2187
|
* Bind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
|
|
2188
2188
|
* @param handler A function to execute each time the event is triggered.
|
|
2189
|
-
* @see \`{@link https://api.jquery.com/contextmenu/ }\`
|
|
2189
|
+
* @see \`{@link https://api.jquery.com/contextmenu-shorthand/ }\`
|
|
2190
2190
|
* @since 1.0
|
|
2191
2191
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
2192
2192
|
*
|
|
2193
2193
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
2194
2194
|
*
|
|
2195
|
-
* **Solution**: Instead of `.
|
|
2195
|
+
* **Solution**: Instead of `.contextmenu(fn)` use `.on("contextmenu", fn)`. Instead of `.contextmenu()` use `.trigger("contextmenu")`.
|
|
2196
2196
|
* @example ````To show a "Hello World!" alert box when the contextmenu event is triggered on a paragraph on the page:
|
|
2197
2197
|
```javascript
|
|
2198
2198
|
$( "p" ).contextmenu(function() {
|
|
@@ -2703,13 +2703,13 @@ $( "button" ).click(function() {
|
|
|
2703
2703
|
* Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.
|
|
2704
2704
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
2705
2705
|
* @param handler A function to execute each time the event is triggered.
|
|
2706
|
-
* @see \`{@link https://api.jquery.com/dblclick/ }\`
|
|
2706
|
+
* @see \`{@link https://api.jquery.com/dblclick-shorthand/ }\`
|
|
2707
2707
|
* @since 1.4.3
|
|
2708
2708
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
2709
2709
|
*
|
|
2710
2710
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
2711
2711
|
*
|
|
2712
|
-
* **Solution**: Instead of `.
|
|
2712
|
+
* **Solution**: Instead of `.dblclick(fn)` use `.on("dblclick", fn)`. Instead of `.dblclick()` use `.trigger("dblclick")`.
|
|
2713
2713
|
*/
|
|
2714
2714
|
dblclick<TData>(
|
|
2715
2715
|
eventData: TData,
|
|
@@ -2718,13 +2718,13 @@ $( "button" ).click(function() {
|
|
|
2718
2718
|
/**
|
|
2719
2719
|
* Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.
|
|
2720
2720
|
* @param handler A function to execute each time the event is triggered.
|
|
2721
|
-
* @see \`{@link https://api.jquery.com/dblclick/ }\`
|
|
2721
|
+
* @see \`{@link https://api.jquery.com/dblclick-shorthand/ }\`
|
|
2722
2722
|
* @since 1.0
|
|
2723
2723
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
2724
2724
|
*
|
|
2725
2725
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
2726
2726
|
*
|
|
2727
|
-
* **Solution**: Instead of `.
|
|
2727
|
+
* **Solution**: Instead of `.dblclick(fn)` use `.on("dblclick", fn)`. Instead of `.dblclick()` use `.trigger("dblclick")`.
|
|
2728
2728
|
* @example ````To bind a "Hello World!" alert box to the dblclick event on every paragraph on the page:
|
|
2729
2729
|
```javascript
|
|
2730
2730
|
$( "p" ).dblclick(function() {
|
|
@@ -4406,13 +4406,13 @@ $( "p span" ).first().addClass( "highlight" );
|
|
|
4406
4406
|
* Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
|
|
4407
4407
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
4408
4408
|
* @param handler A function to execute each time the event is triggered.
|
|
4409
|
-
* @see \`{@link https://api.jquery.com/focus/ }\`
|
|
4409
|
+
* @see \`{@link https://api.jquery.com/focus-shorthand/ }\`
|
|
4410
4410
|
* @since 1.4.3
|
|
4411
4411
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
4412
4412
|
*
|
|
4413
4413
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
4414
4414
|
*
|
|
4415
|
-
* **Solution**: Instead of `.
|
|
4415
|
+
* **Solution**: Instead of `.focus(fn)` use `.on("focus", fn)`. Instead of `.focus()` use `.trigger("focus")`.
|
|
4416
4416
|
*/
|
|
4417
4417
|
focus<TData>(
|
|
4418
4418
|
eventData: TData,
|
|
@@ -4421,13 +4421,13 @@ $( "p span" ).first().addClass( "highlight" );
|
|
|
4421
4421
|
/**
|
|
4422
4422
|
* Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
|
|
4423
4423
|
* @param handler A function to execute each time the event is triggered.
|
|
4424
|
-
* @see \`{@link https://api.jquery.com/focus/ }\`
|
|
4424
|
+
* @see \`{@link https://api.jquery.com/focus-shorthand/ }\`
|
|
4425
4425
|
* @since 1.0
|
|
4426
4426
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
4427
4427
|
*
|
|
4428
4428
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
4429
4429
|
*
|
|
4430
|
-
* **Solution**: Instead of `.
|
|
4430
|
+
* **Solution**: Instead of `.focus(fn)` use `.on("focus", fn)`. Instead of `.focus()` use `.trigger("focus")`.
|
|
4431
4431
|
* @example ````Fire focus.
|
|
4432
4432
|
```html
|
|
4433
4433
|
<!doctype html>
|
|
@@ -4478,13 +4478,13 @@ $( document ).ready(function() {
|
|
|
4478
4478
|
* Bind an event handler to the "focusin" event.
|
|
4479
4479
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
4480
4480
|
* @param handler A function to execute each time the event is triggered.
|
|
4481
|
-
* @see \`{@link https://api.jquery.com/focusin/ }\`
|
|
4481
|
+
* @see \`{@link https://api.jquery.com/focusin-shorthand/ }\`
|
|
4482
4482
|
* @since 1.4.3
|
|
4483
4483
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
4484
4484
|
*
|
|
4485
4485
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
4486
4486
|
*
|
|
4487
|
-
* **Solution**: Instead of `.
|
|
4487
|
+
* **Solution**: Instead of `.focusin(fn)` use `.on("focusin", fn)`. Instead of `.focusin()` use `.trigger("focusin")`.
|
|
4488
4488
|
*/
|
|
4489
4489
|
focusin<TData>(
|
|
4490
4490
|
eventData: TData,
|
|
@@ -4493,13 +4493,13 @@ $( document ).ready(function() {
|
|
|
4493
4493
|
/**
|
|
4494
4494
|
* Bind an event handler to the "focusin" event.
|
|
4495
4495
|
* @param handler A function to execute each time the event is triggered.
|
|
4496
|
-
* @see \`{@link https://api.jquery.com/focusin/ }\`
|
|
4496
|
+
* @see \`{@link https://api.jquery.com/focusin-shorthand/ }\`
|
|
4497
4497
|
* @since 1.4
|
|
4498
4498
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
4499
4499
|
*
|
|
4500
4500
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
4501
4501
|
*
|
|
4502
|
-
* **Solution**: Instead of `.
|
|
4502
|
+
* **Solution**: Instead of `.focusin(fn)` use `.on("focusin", fn)`. Instead of `.focusin()` use `.focusin("click")`.
|
|
4503
4503
|
* @example ````Watch for a focus to occur within the paragraphs on the page.
|
|
4504
4504
|
```html
|
|
4505
4505
|
<!doctype html>
|
|
@@ -4544,7 +4544,7 @@ $( "p" ).focusin(function() {
|
|
|
4544
4544
|
*
|
|
4545
4545
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
4546
4546
|
*
|
|
4547
|
-
* **Solution**: Instead of `.
|
|
4547
|
+
* **Solution**: Instead of `.focusout(fn)` use `.on("focusout", fn)`. Instead of `.focusout()` use `.trigger("focusout")`.
|
|
4548
4548
|
*/
|
|
4549
4549
|
focusout<TData>(
|
|
4550
4550
|
eventData: TData,
|
|
@@ -4559,7 +4559,7 @@ $( "p" ).focusin(function() {
|
|
|
4559
4559
|
*
|
|
4560
4560
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
4561
4561
|
*
|
|
4562
|
-
* **Solution**: Instead of `.
|
|
4562
|
+
* **Solution**: Instead of `.focusout(fn)` use `.on("focusout", fn)`. Instead of `.focusout()` use `.trigger("focusout")`.
|
|
4563
4563
|
* @example ````Watch for a loss of focus to occur inside paragraphs and note the difference between the focusout count and the blur count. (The blur count does not change because those events do not bubble.)
|
|
4564
4564
|
```html
|
|
4565
4565
|
<!doctype html>
|
|
@@ -6031,13 +6031,13 @@ $( "li" ).click(function() {
|
|
|
6031
6031
|
* Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
|
|
6032
6032
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6033
6033
|
* @param handler A function to execute each time the event is triggered.
|
|
6034
|
-
* @see \`{@link https://api.jquery.com/keydown/ }\`
|
|
6034
|
+
* @see \`{@link https://api.jquery.com/keydown-shorthand/ }\`
|
|
6035
6035
|
* @since 1.4.3
|
|
6036
6036
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6037
6037
|
*
|
|
6038
6038
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6039
6039
|
*
|
|
6040
|
-
* **Solution**: Instead of `.
|
|
6040
|
+
* **Solution**: Instead of `.keydown(fn)` use `.on("keydown", fn)`. Instead of `.keydown()` use `.trigger("keydown")`.
|
|
6041
6041
|
*/
|
|
6042
6042
|
keydown<TData>(
|
|
6043
6043
|
eventData: TData,
|
|
@@ -6046,13 +6046,13 @@ $( "li" ).click(function() {
|
|
|
6046
6046
|
/**
|
|
6047
6047
|
* Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
|
|
6048
6048
|
* @param handler A function to execute each time the event is triggered.
|
|
6049
|
-
* @see \`{@link https://api.jquery.com/keydown/ }\`
|
|
6049
|
+
* @see \`{@link https://api.jquery.com/keydown-shorthand/ }\`
|
|
6050
6050
|
* @since 1.0
|
|
6051
6051
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6052
6052
|
*
|
|
6053
6053
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6054
6054
|
*
|
|
6055
|
-
* **Solution**: Instead of `.
|
|
6055
|
+
* **Solution**: Instead of `.keydown(fn)` use `.on("keydown", fn)`. Instead of `.keydown()` use `.trigger("keydown")`.
|
|
6056
6056
|
* @example ````Show the event object for the keydown handler when a key is pressed in the input.
|
|
6057
6057
|
```html
|
|
6058
6058
|
<!doctype html>
|
|
@@ -6123,13 +6123,13 @@ $( "#other" ).click(function() {
|
|
|
6123
6123
|
* Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
|
|
6124
6124
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6125
6125
|
* @param handler A function to execute each time the event is triggered.
|
|
6126
|
-
* @see \`{@link https://api.jquery.com/keypress/ }\`
|
|
6126
|
+
* @see \`{@link https://api.jquery.com/keypress-shorthand/ }\`
|
|
6127
6127
|
* @since 1.4.3
|
|
6128
6128
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6129
6129
|
*
|
|
6130
6130
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6131
6131
|
*
|
|
6132
|
-
* **Solution**: Instead of `.
|
|
6132
|
+
* **Solution**: Instead of `.keypress(fn)` use `.on("keypress", fn)`. Instead of `.keypress()` use `.trigger("keypress")`.
|
|
6133
6133
|
*/
|
|
6134
6134
|
keypress<TData>(
|
|
6135
6135
|
eventData: TData,
|
|
@@ -6138,13 +6138,13 @@ $( "#other" ).click(function() {
|
|
|
6138
6138
|
/**
|
|
6139
6139
|
* Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
|
|
6140
6140
|
* @param handler A function to execute each time the event is triggered.
|
|
6141
|
-
* @see \`{@link https://api.jquery.com/keypress/ }\`
|
|
6141
|
+
* @see \`{@link https://api.jquery.com/keypress-shorthand/ }\`
|
|
6142
6142
|
* @since 1.0
|
|
6143
6143
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6144
6144
|
*
|
|
6145
6145
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6146
6146
|
*
|
|
6147
|
-
* **Solution**: Instead of `.
|
|
6147
|
+
* **Solution**: Instead of `.keypress(fn)` use `.on("keypress", fn)`. Instead of `.keypress()` use `.trigger("keypress")`.
|
|
6148
6148
|
* @example ````Show the event object when a key is pressed in the input. Note: This demo relies on a simple $.print() plugin (https://api.jquery.com/resources/events.js) for the event object's output.
|
|
6149
6149
|
```html
|
|
6150
6150
|
<!doctype html>
|
|
@@ -6221,7 +6221,7 @@ $( "#other" ).click(function() {
|
|
|
6221
6221
|
*
|
|
6222
6222
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6223
6223
|
*
|
|
6224
|
-
* **Solution**: Instead of `.
|
|
6224
|
+
* **Solution**: Instead of `.keyup(fn)` use `.on("keyup", fn)`. Instead of `.keyup()` use `.trigger("keyup")`.
|
|
6225
6225
|
*/
|
|
6226
6226
|
keyup<TData>(
|
|
6227
6227
|
eventData: TData,
|
|
@@ -6236,7 +6236,7 @@ $( "#other" ).click(function() {
|
|
|
6236
6236
|
*
|
|
6237
6237
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6238
6238
|
*
|
|
6239
|
-
* **Solution**: Instead of `.
|
|
6239
|
+
* **Solution**: Instead of `.keyup(fn)` use `.on("keyup", fn)`. Instead of `.keyup()` use `.trigger("keyup")`.
|
|
6240
6240
|
* @example ````Show the event object for the keyup handler (using a simple $.print plugin) when a key is released in the input.
|
|
6241
6241
|
```html
|
|
6242
6242
|
<!doctype html>
|
|
@@ -6676,13 +6676,13 @@ $( "input" ).click(function() {
|
|
|
6676
6676
|
* Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
|
|
6677
6677
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6678
6678
|
* @param handler A function to execute each time the event is triggered.
|
|
6679
|
-
* @see \`{@link https://api.jquery.com/mousedown/ }\`
|
|
6679
|
+
* @see \`{@link https://api.jquery.com/mousedown-shorthand/ }\`
|
|
6680
6680
|
* @since 1.4.3
|
|
6681
6681
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6682
6682
|
*
|
|
6683
6683
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6684
6684
|
*
|
|
6685
|
-
* **Solution**: Instead of `.
|
|
6685
|
+
* **Solution**: Instead of `.mousedown(fn)` use `.on("mousedown", fn)`. Instead of `.mousedown()` use `.trigger("mousedown")`.
|
|
6686
6686
|
*/
|
|
6687
6687
|
mousedown<TData>(
|
|
6688
6688
|
eventData: TData,
|
|
@@ -6691,13 +6691,13 @@ $( "input" ).click(function() {
|
|
|
6691
6691
|
/**
|
|
6692
6692
|
* Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
|
|
6693
6693
|
* @param handler A function to execute each time the event is triggered.
|
|
6694
|
-
* @see \`{@link https://api.jquery.com/mousedown/ }\`
|
|
6694
|
+
* @see \`{@link https://api.jquery.com/mousedown-shorthand/ }\`
|
|
6695
6695
|
* @since 1.0
|
|
6696
6696
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6697
6697
|
*
|
|
6698
6698
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6699
6699
|
*
|
|
6700
|
-
* **Solution**: Instead of `.
|
|
6700
|
+
* **Solution**: Instead of `.mousedown(fn)` use `.on("mousedown", fn)`. Instead of `.mousedown()` use `.trigger("mousedown")`.
|
|
6701
6701
|
* @example ````Show texts when mouseup and mousedown event triggering.
|
|
6702
6702
|
```html
|
|
6703
6703
|
<!doctype html>
|
|
@@ -6734,13 +6734,13 @@ $( "p" )
|
|
|
6734
6734
|
* Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.
|
|
6735
6735
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6736
6736
|
* @param handler A function to execute each time the event is triggered.
|
|
6737
|
-
* @see \`{@link https://api.jquery.com/mouseenter/ }\`
|
|
6737
|
+
* @see \`{@link https://api.jquery.com/mouseenter-shorthand/ }\`
|
|
6738
6738
|
* @since 1.4.3
|
|
6739
6739
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6740
6740
|
*
|
|
6741
6741
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6742
6742
|
*
|
|
6743
|
-
* **Solution**: Instead of `.
|
|
6743
|
+
* **Solution**: Instead of `.mouseenter(fn)` use `.on("mouseenter", fn)`. Instead of `.mouseenter()` use `.trigger("mouseenter")`.
|
|
6744
6744
|
*/
|
|
6745
6745
|
mouseenter<TData>(
|
|
6746
6746
|
eventData: TData,
|
|
@@ -6749,13 +6749,13 @@ $( "p" )
|
|
|
6749
6749
|
/**
|
|
6750
6750
|
* Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.
|
|
6751
6751
|
* @param handler A function to execute each time the event is triggered.
|
|
6752
|
-
* @see \`{@link https://api.jquery.com/mouseenter/ }\`
|
|
6752
|
+
* @see \`{@link https://api.jquery.com/mouseenter-shorthand/ }\`
|
|
6753
6753
|
* @since 1.0
|
|
6754
6754
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6755
6755
|
*
|
|
6756
6756
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6757
6757
|
*
|
|
6758
|
-
* **Solution**: Instead of `.
|
|
6758
|
+
* **Solution**: Instead of `.mouseenter(fn)` use `.on("mouseenter", fn)`. Instead of `.mouseenter()` use `.trigger("mouseenter")`.
|
|
6759
6759
|
* @example ````Show texts when mouseenter and mouseout event triggering.
|
|
6760
6760
|
mouseover fires when the pointer moves into the child element as well, while mouseenter fires only when the pointer moves into the bound element.
|
|
6761
6761
|
```html
|
|
@@ -6835,13 +6835,13 @@ $( "div.enterleave" )
|
|
|
6835
6835
|
* Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.
|
|
6836
6836
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6837
6837
|
* @param handler A function to execute each time the event is triggered.
|
|
6838
|
-
* @see \`{@link https://api.jquery.com/mouseleave/ }\`
|
|
6838
|
+
* @see \`{@link https://api.jquery.com/mouseleave-shorthand/ }\`
|
|
6839
6839
|
* @since 1.4.3
|
|
6840
6840
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6841
6841
|
*
|
|
6842
6842
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6843
6843
|
*
|
|
6844
|
-
* **Solution**: Instead of `.
|
|
6844
|
+
* **Solution**: Instead of `.mouseleave(fn)` use `.on("mouseleave", fn)`. Instead of `.mouseleave()` use `.trigger("mouseleave")`.
|
|
6845
6845
|
*/
|
|
6846
6846
|
mouseleave<TData>(
|
|
6847
6847
|
eventData: TData,
|
|
@@ -6850,13 +6850,13 @@ $( "div.enterleave" )
|
|
|
6850
6850
|
/**
|
|
6851
6851
|
* Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.
|
|
6852
6852
|
* @param handler A function to execute each time the event is triggered.
|
|
6853
|
-
* @see \`{@link https://api.jquery.com/mouseleave/ }\`
|
|
6853
|
+
* @see \`{@link https://api.jquery.com/mouseleave-shorthand/ }\`
|
|
6854
6854
|
* @since 1.0
|
|
6855
6855
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6856
6856
|
*
|
|
6857
6857
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6858
6858
|
*
|
|
6859
|
-
* **Solution**: Instead of `.
|
|
6859
|
+
* **Solution**: Instead of `.mouseleave(fn)` use `.on("mouseleave", fn)`. Instead of `.mouseleave()` use `.trigger("mouseleave")`.
|
|
6860
6860
|
* @example ````Show number of times mouseout and mouseleave events are triggered. mouseout fires when the pointer moves out of child element as well, while mouseleave fires only when the pointer moves out of the bound element.
|
|
6861
6861
|
```html
|
|
6862
6862
|
<!doctype html>
|
|
@@ -6934,13 +6934,13 @@ $( "div.enterleave" )
|
|
|
6934
6934
|
* Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
|
|
6935
6935
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6936
6936
|
* @param handler A function to execute each time the event is triggered.
|
|
6937
|
-
* @see \`{@link https://api.jquery.com/mousemove/ }\`
|
|
6937
|
+
* @see \`{@link https://api.jquery.com/mousemove-shorthand/ }\`
|
|
6938
6938
|
* @since 1.4.3
|
|
6939
6939
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6940
6940
|
*
|
|
6941
6941
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6942
6942
|
*
|
|
6943
|
-
* **Solution**: Instead of `.
|
|
6943
|
+
* **Solution**: Instead of `.mousemove(fn)` use `.on("mousemove", fn)`. Instead of `.mousemove()` use `.trigger("mousemove")`.
|
|
6944
6944
|
*/
|
|
6945
6945
|
mousemove<TData>(
|
|
6946
6946
|
eventData: TData,
|
|
@@ -6949,13 +6949,13 @@ $( "div.enterleave" )
|
|
|
6949
6949
|
/**
|
|
6950
6950
|
* Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
|
|
6951
6951
|
* @param handler A function to execute each time the event is triggered.
|
|
6952
|
-
* @see \`{@link https://api.jquery.com/mousemove/ }\`
|
|
6952
|
+
* @see \`{@link https://api.jquery.com/mousemove-shorthand/ }\`
|
|
6953
6953
|
* @since 1.0
|
|
6954
6954
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6955
6955
|
*
|
|
6956
6956
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
6957
6957
|
*
|
|
6958
|
-
* **Solution**: Instead of `.
|
|
6958
|
+
* **Solution**: Instead of `.mousemove(fn)` use `.on("mousemove", fn)`. Instead of `.mousemove()` use `.trigger("mousemove")`.
|
|
6959
6959
|
* @example ````Show the mouse coordinates when the mouse is moved over the yellow div. Coordinates are relative to the window, which in this case is the iframe.
|
|
6960
6960
|
```html
|
|
6961
6961
|
<!doctype html>
|
|
@@ -7018,13 +7018,13 @@ $( "div" ).mousemove(function( event ) {
|
|
|
7018
7018
|
* Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
|
|
7019
7019
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
7020
7020
|
* @param handler A function to execute each time the event is triggered.
|
|
7021
|
-
* @see \`{@link https://api.jquery.com/mouseout/ }\`
|
|
7021
|
+
* @see \`{@link https://api.jquery.com/mouseout-shorthand/ }\`
|
|
7022
7022
|
* @since 1.4.3
|
|
7023
7023
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7024
7024
|
*
|
|
7025
7025
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
7026
7026
|
*
|
|
7027
|
-
* **Solution**: Instead of `.
|
|
7027
|
+
* **Solution**: Instead of `.mouseout(fn)` use `.on("mouseout", fn)`. Instead of `.mouseout()` use `.trigger("mouseout")`.
|
|
7028
7028
|
*/
|
|
7029
7029
|
mouseout<TData>(
|
|
7030
7030
|
eventData: TData,
|
|
@@ -7033,13 +7033,13 @@ $( "div" ).mousemove(function( event ) {
|
|
|
7033
7033
|
/**
|
|
7034
7034
|
* Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
|
|
7035
7035
|
* @param handler A function to execute each time the event is triggered.
|
|
7036
|
-
* @see \`{@link https://api.jquery.com/mouseout/ }\`
|
|
7036
|
+
* @see \`{@link https://api.jquery.com/mouseout-shorthand/ }\`
|
|
7037
7037
|
* @since 1.0
|
|
7038
7038
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7039
7039
|
*
|
|
7040
7040
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
7041
7041
|
*
|
|
7042
|
-
* **Solution**: Instead of `.
|
|
7042
|
+
* **Solution**: Instead of `.mouseout(fn)` use `.on("mouseout", fn)`. Instead of `.mouseout()` use `.trigger("mouseout")`.
|
|
7043
7043
|
* @example ````Show the number of times mouseout and mouseleave events are triggered.
|
|
7044
7044
|
mouseout fires when the pointer moves out of the child element as well, while mouseleave fires only when the pointer moves out of the bound element.
|
|
7045
7045
|
```html
|
|
@@ -7119,13 +7119,13 @@ $( "div.enterleave" )
|
|
|
7119
7119
|
* Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
|
|
7120
7120
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
7121
7121
|
* @param handler A function to execute each time the event is triggered.
|
|
7122
|
-
* @see \`{@link https://api.jquery.com/mouseover/ }\`
|
|
7122
|
+
* @see \`{@link https://api.jquery.com/mouseover-shorthand/ }\`
|
|
7123
7123
|
* @since 1.4.3
|
|
7124
7124
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7125
7125
|
*
|
|
7126
7126
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
7127
7127
|
*
|
|
7128
|
-
* **Solution**: Instead of `.
|
|
7128
|
+
* **Solution**: Instead of `.mouseover(fn)` use `.on("mouseover", fn)`. Instead of `.mouseover()` use `.trigger("mouseover")`.
|
|
7129
7129
|
*/
|
|
7130
7130
|
mouseover<TData>(
|
|
7131
7131
|
eventData: TData,
|
|
@@ -7134,13 +7134,13 @@ $( "div.enterleave" )
|
|
|
7134
7134
|
/**
|
|
7135
7135
|
* Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
|
|
7136
7136
|
* @param handler A function to execute each time the event is triggered.
|
|
7137
|
-
* @see \`{@link https://api.jquery.com/mouseover/ }\`
|
|
7137
|
+
* @see \`{@link https://api.jquery.com/mouseover-shorthand/ }\`
|
|
7138
7138
|
* @since 1.0
|
|
7139
7139
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7140
7140
|
*
|
|
7141
7141
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
7142
7142
|
*
|
|
7143
|
-
* **Solution**: Instead of `.
|
|
7143
|
+
* **Solution**: Instead of `.mouseover(fn)` use `.on("mouseover", fn)`. Instead of `.mouseover()` use `.trigger("mouseover")`.
|
|
7144
7144
|
* @example ````Show the number of times mouseover and mouseenter events are triggered.
|
|
7145
7145
|
mouseover fires when the pointer moves into the child element as well, while mouseenter fires only when the pointer moves into the bound element.
|
|
7146
7146
|
```html
|
|
@@ -7220,13 +7220,13 @@ $( "div.enterleave" )
|
|
|
7220
7220
|
* Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
|
|
7221
7221
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
7222
7222
|
* @param handler A function to execute each time the event is triggered.
|
|
7223
|
-
* @see \`{@link https://api.jquery.com/mouseup/ }\`
|
|
7223
|
+
* @see \`{@link https://api.jquery.com/mouseup-shorthand/ }\`
|
|
7224
7224
|
* @since 1.4.3
|
|
7225
7225
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7226
7226
|
*
|
|
7227
7227
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
7228
7228
|
*
|
|
7229
|
-
* **Solution**: Instead of `.
|
|
7229
|
+
* **Solution**: Instead of `.mouseup(fn)` use `.on("mouseup", fn)`. Instead of `.mouseup()` use `.trigger("mouseup")`.
|
|
7230
7230
|
*/
|
|
7231
7231
|
mouseup<TData>(
|
|
7232
7232
|
eventData: TData,
|
|
@@ -7235,13 +7235,13 @@ $( "div.enterleave" )
|
|
|
7235
7235
|
/**
|
|
7236
7236
|
* Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
|
|
7237
7237
|
* @param handler A function to execute each time the event is triggered.
|
|
7238
|
-
* @see \`{@link https://api.jquery.com/mouseup/ }\`
|
|
7238
|
+
* @see \`{@link https://api.jquery.com/mouseup-shorthand/ }\`
|
|
7239
7239
|
* @since 1.0
|
|
7240
7240
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7241
7241
|
*
|
|
7242
7242
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
7243
7243
|
*
|
|
7244
|
-
* **Solution**: Instead of `.
|
|
7244
|
+
* **Solution**: Instead of `.mouseup(fn)` use `.on("mouseup", fn)`. Instead of `.mouseup()` use `.trigger("mouseup")`.
|
|
7245
7245
|
* @example ````Show texts when mouseup and mousedown event triggering.
|
|
7246
7246
|
```html
|
|
7247
7247
|
<!doctype html>
|
|
@@ -10341,13 +10341,13 @@ $( "button" ).on( "click", function() {
|
|
|
10341
10341
|
* Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.
|
|
10342
10342
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
10343
10343
|
* @param handler A function to execute each time the event is triggered.
|
|
10344
|
-
* @see \`{@link https://api.jquery.com/resize/ }\`
|
|
10344
|
+
* @see \`{@link https://api.jquery.com/resize-shorthand/ }\`
|
|
10345
10345
|
* @since 1.4.3
|
|
10346
10346
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10347
10347
|
*
|
|
10348
10348
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
10349
10349
|
*
|
|
10350
|
-
* **Solution**: Instead of `.
|
|
10350
|
+
* **Solution**: Instead of `.resize(fn)` use `.on("resize", fn)`. Instead of `.resize()` use `.trigger("resize")`.
|
|
10351
10351
|
*/
|
|
10352
10352
|
resize<TData>(
|
|
10353
10353
|
eventData: TData,
|
|
@@ -10356,13 +10356,13 @@ $( "button" ).on( "click", function() {
|
|
|
10356
10356
|
/**
|
|
10357
10357
|
* Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.
|
|
10358
10358
|
* @param handler A function to execute each time the event is triggered.
|
|
10359
|
-
* @see \`{@link https://api.jquery.com/resize/ }\`
|
|
10359
|
+
* @see \`{@link https://api.jquery.com/resize-shorthand/ }\`
|
|
10360
10360
|
* @since 1.0
|
|
10361
10361
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10362
10362
|
*
|
|
10363
10363
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
10364
10364
|
*
|
|
10365
|
-
* **Solution**: Instead of `.
|
|
10365
|
+
* **Solution**: Instead of `.resize(fn)` use `.on("resize", fn)`. Instead of `.resize()` use `.trigger("resize")`.
|
|
10366
10366
|
* @example ````To see the window width while (or after) it is resized, try:
|
|
10367
10367
|
```javascript
|
|
10368
10368
|
$( window ).resize(function() {
|
|
@@ -10379,13 +10379,13 @@ $( window ).resize(function() {
|
|
|
10379
10379
|
* Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.
|
|
10380
10380
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
10381
10381
|
* @param handler A function to execute each time the event is triggered.
|
|
10382
|
-
* @see \`{@link https://api.jquery.com/scroll/ }\`
|
|
10382
|
+
* @see \`{@link https://api.jquery.com/scroll-shorthand/ }\`
|
|
10383
10383
|
* @since 1.4.3
|
|
10384
10384
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10385
10385
|
*
|
|
10386
10386
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
10387
10387
|
*
|
|
10388
|
-
* **Solution**: Instead of `.
|
|
10388
|
+
* **Solution**: Instead of `.scroll(fn)` use `.on("scroll", fn)`. Instead of `.scroll()` use `.trigger("scroll")`.
|
|
10389
10389
|
*/
|
|
10390
10390
|
scroll<TData>(
|
|
10391
10391
|
eventData: TData,
|
|
@@ -10394,13 +10394,13 @@ $( window ).resize(function() {
|
|
|
10394
10394
|
/**
|
|
10395
10395
|
* Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.
|
|
10396
10396
|
* @param handler A function to execute each time the event is triggered.
|
|
10397
|
-
* @see \`{@link https://api.jquery.com/scroll/ }\`
|
|
10397
|
+
* @see \`{@link https://api.jquery.com/scroll-shorthand/ }\`
|
|
10398
10398
|
* @since 1.0
|
|
10399
10399
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10400
10400
|
*
|
|
10401
10401
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
10402
10402
|
*
|
|
10403
|
-
* **Solution**: Instead of `.
|
|
10403
|
+
* **Solution**: Instead of `.scroll(fn)` use `.on("scroll", fn)`. Instead of `.scroll()` use `.trigger("scroll")`.
|
|
10404
10404
|
* @example ````To do something when your page is scrolled:
|
|
10405
10405
|
```html
|
|
10406
10406
|
<!doctype html>
|
|
@@ -10609,13 +10609,13 @@ $( "p:last" ).text( "scrollTop:" + p.scrollTop() );
|
|
|
10609
10609
|
* Bind an event handler to the "select" JavaScript event, or trigger that event on an element.
|
|
10610
10610
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
10611
10611
|
* @param handler A function to execute each time the event is triggered.
|
|
10612
|
-
* @see \`{@link https://api.jquery.com/select/ }\`
|
|
10612
|
+
* @see \`{@link https://api.jquery.com/select-shorthand/ }\`
|
|
10613
10613
|
* @since 1.4.3
|
|
10614
10614
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10615
10615
|
*
|
|
10616
10616
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
10617
10617
|
*
|
|
10618
|
-
* **Solution**: Instead of `.
|
|
10618
|
+
* **Solution**: Instead of `.select(fn)` use `.on("select", fn)`. Instead of `.select()` use `.trigger("select")`.
|
|
10619
10619
|
*/
|
|
10620
10620
|
select<TData>(
|
|
10621
10621
|
eventData: TData,
|
|
@@ -10624,13 +10624,13 @@ $( "p:last" ).text( "scrollTop:" + p.scrollTop() );
|
|
|
10624
10624
|
/**
|
|
10625
10625
|
* Bind an event handler to the "select" JavaScript event, or trigger that event on an element.
|
|
10626
10626
|
* @param handler A function to execute each time the event is triggered.
|
|
10627
|
-
* @see \`{@link https://api.jquery.com/select/ }\`
|
|
10627
|
+
* @see \`{@link https://api.jquery.com/select-shorthand/ }\`
|
|
10628
10628
|
* @since 1.0
|
|
10629
10629
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10630
10630
|
*
|
|
10631
10631
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
10632
10632
|
*
|
|
10633
|
-
* **Solution**: Instead of `.
|
|
10633
|
+
* **Solution**: Instead of `.select(fn)` use `.on("select", fn)`. Instead of `.select()` use `.trigger("select")`.
|
|
10634
10634
|
* @example ````To do something when text in input boxes is selected:
|
|
10635
10635
|
```html
|
|
10636
10636
|
<!doctype html>
|
|
@@ -11655,13 +11655,13 @@ $( "#toggle" ).on( "click", function() {
|
|
|
11655
11655
|
* Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
|
|
11656
11656
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
11657
11657
|
* @param handler A function to execute each time the event is triggered.
|
|
11658
|
-
* @see \`{@link https://api.jquery.com/submit/ }\`
|
|
11658
|
+
* @see \`{@link https://api.jquery.com/submit-shorthand/ }\`
|
|
11659
11659
|
* @since 1.4.3
|
|
11660
11660
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
11661
11661
|
*
|
|
11662
11662
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
11663
11663
|
*
|
|
11664
|
-
* **Solution**: Instead of `.
|
|
11664
|
+
* **Solution**: Instead of `.submit(fn)` use `.on("submit", fn)`. Instead of `.submit()` use `.trigger("submit")`.
|
|
11665
11665
|
*/
|
|
11666
11666
|
submit<TData>(
|
|
11667
11667
|
eventData: TData,
|
|
@@ -11670,13 +11670,13 @@ $( "#toggle" ).on( "click", function() {
|
|
|
11670
11670
|
/**
|
|
11671
11671
|
* Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
|
|
11672
11672
|
* @param handler A function to execute each time the event is triggered.
|
|
11673
|
-
* @see \`{@link https://api.jquery.com/submit/ }\`
|
|
11673
|
+
* @see \`{@link https://api.jquery.com/submit-shorthand/ }\`
|
|
11674
11674
|
* @since 1.0
|
|
11675
11675
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
11676
11676
|
*
|
|
11677
11677
|
* **Cause**: The `.on()` and `.trigger()` methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
|
|
11678
11678
|
*
|
|
11679
|
-
* **Solution**: Instead of `.
|
|
11679
|
+
* **Solution**: Instead of `.submit(fn)` use `.on("submit", fn)`. Instead of `.submit()` use `.trigger("submit")`.
|
|
11680
11680
|
* @example ````If you'd like to prevent forms from being submitted unless a flag variable is set, try:
|
|
11681
11681
|
```html
|
|
11682
11682
|
<!doctype html>
|
jquery/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for jquery (https://jquery.com).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 07 May 2024 20:08:04 GMT
|
|
12
12
|
* Dependencies: [@types/sizzle](https://npmjs.com/package/@types/sizzle)
|
|
13
13
|
|
|
14
14
|
# Credits
|
jquery/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jquery",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.30",
|
|
4
4
|
"description": "TypeScript definitions for jquery",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery",
|
|
6
6
|
"license": "MIT",
|
|
@@ -127,6 +127,6 @@
|
|
|
127
127
|
"dependencies": {
|
|
128
128
|
"@types/sizzle": "*"
|
|
129
129
|
},
|
|
130
|
-
"typesPublisherContentHash": "
|
|
131
|
-
"typeScriptVersion": "4.
|
|
130
|
+
"typesPublisherContentHash": "c2bbe4aa3b1a237fb7a313340ed457216078c5c41341aa08f63c958d7e6df555",
|
|
131
|
+
"typeScriptVersion": "4.7"
|
|
132
132
|
}
|