@types/jquery 3.5.28 → 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 +90 -80
- jquery/JQueryStatic.d.ts +3 -0
- jquery/README.md +1 -1
- jquery/misc.d.ts +7 -0
- jquery/package.json +3 -3
jquery/JQuery.d.ts
CHANGED
|
@@ -553,6 +553,7 @@ $( document ).ajaxComplete(function( event, request, settings ) {
|
|
|
553
553
|
event: JQuery.TriggeredEvent<Document, undefined, Document, Document>,
|
|
554
554
|
jqXHR: JQuery.jqXHR,
|
|
555
555
|
ajaxOptions: JQuery.AjaxSettings,
|
|
556
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
556
557
|
) => void | false,
|
|
557
558
|
): this;
|
|
558
559
|
/**
|
|
@@ -574,6 +575,7 @@ $( document ).ajaxError(function( event, request, settings ) {
|
|
|
574
575
|
jqXHR: JQuery.jqXHR,
|
|
575
576
|
ajaxSettings: JQuery.AjaxSettings,
|
|
576
577
|
thrownError: string,
|
|
578
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
577
579
|
) => void | false,
|
|
578
580
|
): this;
|
|
579
581
|
/**
|
|
@@ -594,6 +596,7 @@ $( document ).ajaxSend(function( event, request, settings ) {
|
|
|
594
596
|
event: JQuery.TriggeredEvent<Document, undefined, Document, Document>,
|
|
595
597
|
jqXHR: JQuery.jqXHR,
|
|
596
598
|
ajaxOptions: JQuery.AjaxSettings,
|
|
599
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
597
600
|
) => void | false,
|
|
598
601
|
): this;
|
|
599
602
|
/**
|
|
@@ -608,6 +611,7 @@ $( document ).ajaxStart(function() {
|
|
|
608
611
|
});
|
|
609
612
|
```
|
|
610
613
|
*/
|
|
614
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
611
615
|
ajaxStart(handler: (this: Document) => void | false): this;
|
|
612
616
|
/**
|
|
613
617
|
* Register a handler to be called when all Ajax requests have completed. This is an Ajax Event.
|
|
@@ -621,6 +625,7 @@ $( document ).ajaxStop(function() {
|
|
|
621
625
|
});
|
|
622
626
|
```
|
|
623
627
|
*/
|
|
628
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
624
629
|
ajaxStop(handler: (this: Document) => void | false): this;
|
|
625
630
|
/**
|
|
626
631
|
* Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.
|
|
@@ -641,6 +646,7 @@ $( document ).ajaxSuccess(function( event, request, settings ) {
|
|
|
641
646
|
jqXHR: JQuery.jqXHR,
|
|
642
647
|
ajaxOptions: JQuery.AjaxSettings,
|
|
643
648
|
data: JQuery.PlainObject,
|
|
649
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
644
650
|
) => void | false,
|
|
645
651
|
): this;
|
|
646
652
|
/**
|
|
@@ -1155,6 +1161,7 @@ $( "img" ).attr( "src", function() {
|
|
|
1155
1161
|
| string
|
|
1156
1162
|
| number
|
|
1157
1163
|
| null
|
|
1164
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
1158
1165
|
| ((this: TElement, index: number, attr: string) => string | number | void | undefined),
|
|
1159
1166
|
): this;
|
|
1160
1167
|
/**
|
|
@@ -1567,25 +1574,25 @@ $( "div.test" ).bind({
|
|
|
1567
1574
|
* Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
|
|
1568
1575
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
1569
1576
|
* @param handler A function to execute each time the event is triggered.
|
|
1570
|
-
* @see \`{@link https://api.jquery.com/blur/ }\`
|
|
1577
|
+
* @see \`{@link https://api.jquery.com/blur-shorthand/ }\`
|
|
1571
1578
|
* @since 1.4.3
|
|
1572
1579
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
1573
1580
|
*
|
|
1574
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.
|
|
1575
1582
|
*
|
|
1576
|
-
* **Solution**: Instead of `.
|
|
1583
|
+
* **Solution**: Instead of `.blur(fn)` use `.on("blur", fn)`. Instead of `.blur()` use `.trigger("blur")`.
|
|
1577
1584
|
*/
|
|
1578
1585
|
blur<TData>(eventData: TData, handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "blur">): this;
|
|
1579
1586
|
/**
|
|
1580
1587
|
* Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
|
|
1581
1588
|
* @param handler A function to execute each time the event is triggered.
|
|
1582
|
-
* @see \`{@link https://api.jquery.com/blur/ }\`
|
|
1589
|
+
* @see \`{@link https://api.jquery.com/blur-shorthand/ }\`
|
|
1583
1590
|
* @since 1.0
|
|
1584
1591
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
1585
1592
|
*
|
|
1586
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.
|
|
1587
1594
|
*
|
|
1588
|
-
* **Solution**: Instead of `.
|
|
1595
|
+
* **Solution**: Instead of `.blur(fn)` use `.on("blur", fn)`. Instead of `.blur()` use `.trigger("blur")`.
|
|
1589
1596
|
* @example ````To trigger the blur event on all paragraphs:
|
|
1590
1597
|
```javascript
|
|
1591
1598
|
$( "p" ).blur();
|
|
@@ -1600,13 +1607,13 @@ $( "p" ).blur();
|
|
|
1600
1607
|
* Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
|
|
1601
1608
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
1602
1609
|
* @param handler A function to execute each time the event is triggered.
|
|
1603
|
-
* @see \`{@link https://api.jquery.com/change/ }\`
|
|
1610
|
+
* @see \`{@link https://api.jquery.com/change-shorthand/ }\`
|
|
1604
1611
|
* @since 1.4.3
|
|
1605
1612
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
1606
1613
|
*
|
|
1607
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.
|
|
1608
1615
|
*
|
|
1609
|
-
* **Solution**: Instead of `.
|
|
1616
|
+
* **Solution**: Instead of `.change(fn)` use `.on("change", fn)`. Instead of `.change()` use `.trigger("change")`.
|
|
1610
1617
|
*/
|
|
1611
1618
|
change<TData>(
|
|
1612
1619
|
eventData: TData,
|
|
@@ -1615,13 +1622,13 @@ $( "p" ).blur();
|
|
|
1615
1622
|
/**
|
|
1616
1623
|
* Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
|
|
1617
1624
|
* @param handler A function to execute each time the event is triggered.
|
|
1618
|
-
* @see \`{@link https://api.jquery.com/change/ }\`
|
|
1625
|
+
* @see \`{@link https://api.jquery.com/change-shorthand/ }\`
|
|
1619
1626
|
* @since 1.0
|
|
1620
1627
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
1621
1628
|
*
|
|
1622
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.
|
|
1623
1630
|
*
|
|
1624
|
-
* **Solution**: Instead of `.
|
|
1631
|
+
* **Solution**: Instead of `.change(fn)` use `.on("change", fn)`. Instead of `.change()` use `.trigger("change")`.
|
|
1625
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.
|
|
1626
1633
|
```html
|
|
1627
1634
|
<!doctype html>
|
|
@@ -2164,13 +2171,13 @@ $( "#frameDemo" ).contents().find( "a" ).css( "background-color", "#BADA55" );
|
|
|
2164
2171
|
* Bind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
|
|
2165
2172
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
2166
2173
|
* @param handler A function to execute each time the event is triggered.
|
|
2167
|
-
* @see \`{@link https://api.jquery.com/contextmenu/ }\`
|
|
2174
|
+
* @see \`{@link https://api.jquery.com/contextmenu-shorthand/ }\`
|
|
2168
2175
|
* @since 1.4.3
|
|
2169
2176
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
2170
2177
|
*
|
|
2171
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.
|
|
2172
2179
|
*
|
|
2173
|
-
* **Solution**: Instead of `.
|
|
2180
|
+
* **Solution**: Instead of `.contextmenu(fn)` use `.on("contextmenu", fn)`. Instead of `.contextmenu()` use `.trigger("contextmenu")`.
|
|
2174
2181
|
*/
|
|
2175
2182
|
contextmenu<TData>(
|
|
2176
2183
|
eventData: TData,
|
|
@@ -2179,13 +2186,13 @@ $( "#frameDemo" ).contents().find( "a" ).css( "background-color", "#BADA55" );
|
|
|
2179
2186
|
/**
|
|
2180
2187
|
* Bind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
|
|
2181
2188
|
* @param handler A function to execute each time the event is triggered.
|
|
2182
|
-
* @see \`{@link https://api.jquery.com/contextmenu/ }\`
|
|
2189
|
+
* @see \`{@link https://api.jquery.com/contextmenu-shorthand/ }\`
|
|
2183
2190
|
* @since 1.0
|
|
2184
2191
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
2185
2192
|
*
|
|
2186
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.
|
|
2187
2194
|
*
|
|
2188
|
-
* **Solution**: Instead of `.
|
|
2195
|
+
* **Solution**: Instead of `.contextmenu(fn)` use `.on("contextmenu", fn)`. Instead of `.contextmenu()` use `.trigger("contextmenu")`.
|
|
2189
2196
|
* @example ````To show a "Hello World!" alert box when the contextmenu event is triggered on a paragraph on the page:
|
|
2190
2197
|
```javascript
|
|
2191
2198
|
$( "p" ).contextmenu(function() {
|
|
@@ -2350,6 +2357,7 @@ $( "span" ).on( "click", function() {
|
|
|
2350
2357
|
value_function:
|
|
2351
2358
|
| string
|
|
2352
2359
|
| number
|
|
2360
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
2353
2361
|
| ((this: TElement, index: number, value: string) => string | number | void | undefined),
|
|
2354
2362
|
): this;
|
|
2355
2363
|
/**
|
|
@@ -2436,6 +2444,7 @@ $( "div" ).on( "click", function() {
|
|
|
2436
2444
|
*/
|
|
2437
2445
|
css(
|
|
2438
2446
|
properties: JQuery.PlainObject<
|
|
2447
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
2439
2448
|
string | number | ((this: TElement, index: number, value: string) => string | number | void | undefined)
|
|
2440
2449
|
>,
|
|
2441
2450
|
): this;
|
|
@@ -2694,13 +2703,13 @@ $( "button" ).click(function() {
|
|
|
2694
2703
|
* Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.
|
|
2695
2704
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
2696
2705
|
* @param handler A function to execute each time the event is triggered.
|
|
2697
|
-
* @see \`{@link https://api.jquery.com/dblclick/ }\`
|
|
2706
|
+
* @see \`{@link https://api.jquery.com/dblclick-shorthand/ }\`
|
|
2698
2707
|
* @since 1.4.3
|
|
2699
2708
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
2700
2709
|
*
|
|
2701
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.
|
|
2702
2711
|
*
|
|
2703
|
-
* **Solution**: Instead of `.
|
|
2712
|
+
* **Solution**: Instead of `.dblclick(fn)` use `.on("dblclick", fn)`. Instead of `.dblclick()` use `.trigger("dblclick")`.
|
|
2704
2713
|
*/
|
|
2705
2714
|
dblclick<TData>(
|
|
2706
2715
|
eventData: TData,
|
|
@@ -2709,13 +2718,13 @@ $( "button" ).click(function() {
|
|
|
2709
2718
|
/**
|
|
2710
2719
|
* Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.
|
|
2711
2720
|
* @param handler A function to execute each time the event is triggered.
|
|
2712
|
-
* @see \`{@link https://api.jquery.com/dblclick/ }\`
|
|
2721
|
+
* @see \`{@link https://api.jquery.com/dblclick-shorthand/ }\`
|
|
2713
2722
|
* @since 1.0
|
|
2714
2723
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
2715
2724
|
*
|
|
2716
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.
|
|
2717
2726
|
*
|
|
2718
|
-
* **Solution**: Instead of `.
|
|
2727
|
+
* **Solution**: Instead of `.dblclick(fn)` use `.on("dblclick", fn)`. Instead of `.dblclick()` use `.trigger("dblclick")`.
|
|
2719
2728
|
* @example ````To bind a "Hello World!" alert box to the dblclick event on every paragraph on the page:
|
|
2720
2729
|
```javascript
|
|
2721
2730
|
$( "p" ).dblclick(function() {
|
|
@@ -3204,6 +3213,7 @@ $( "button" ).click(function() {
|
|
|
3204
3213
|
</html>
|
|
3205
3214
|
```
|
|
3206
3215
|
*/
|
|
3216
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
3207
3217
|
each(funсtion: (this: TElement, index: number, element: TElement) => void | false): this;
|
|
3208
3218
|
/**
|
|
3209
3219
|
* Remove all child nodes of the set of matched elements from the DOM.
|
|
@@ -4396,13 +4406,13 @@ $( "p span" ).first().addClass( "highlight" );
|
|
|
4396
4406
|
* Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
|
|
4397
4407
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
4398
4408
|
* @param handler A function to execute each time the event is triggered.
|
|
4399
|
-
* @see \`{@link https://api.jquery.com/focus/ }\`
|
|
4409
|
+
* @see \`{@link https://api.jquery.com/focus-shorthand/ }\`
|
|
4400
4410
|
* @since 1.4.3
|
|
4401
4411
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
4402
4412
|
*
|
|
4403
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.
|
|
4404
4414
|
*
|
|
4405
|
-
* **Solution**: Instead of `.
|
|
4415
|
+
* **Solution**: Instead of `.focus(fn)` use `.on("focus", fn)`. Instead of `.focus()` use `.trigger("focus")`.
|
|
4406
4416
|
*/
|
|
4407
4417
|
focus<TData>(
|
|
4408
4418
|
eventData: TData,
|
|
@@ -4411,13 +4421,13 @@ $( "p span" ).first().addClass( "highlight" );
|
|
|
4411
4421
|
/**
|
|
4412
4422
|
* Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
|
|
4413
4423
|
* @param handler A function to execute each time the event is triggered.
|
|
4414
|
-
* @see \`{@link https://api.jquery.com/focus/ }\`
|
|
4424
|
+
* @see \`{@link https://api.jquery.com/focus-shorthand/ }\`
|
|
4415
4425
|
* @since 1.0
|
|
4416
4426
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
4417
4427
|
*
|
|
4418
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.
|
|
4419
4429
|
*
|
|
4420
|
-
* **Solution**: Instead of `.
|
|
4430
|
+
* **Solution**: Instead of `.focus(fn)` use `.on("focus", fn)`. Instead of `.focus()` use `.trigger("focus")`.
|
|
4421
4431
|
* @example ````Fire focus.
|
|
4422
4432
|
```html
|
|
4423
4433
|
<!doctype html>
|
|
@@ -4468,13 +4478,13 @@ $( document ).ready(function() {
|
|
|
4468
4478
|
* Bind an event handler to the "focusin" event.
|
|
4469
4479
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
4470
4480
|
* @param handler A function to execute each time the event is triggered.
|
|
4471
|
-
* @see \`{@link https://api.jquery.com/focusin/ }\`
|
|
4481
|
+
* @see \`{@link https://api.jquery.com/focusin-shorthand/ }\`
|
|
4472
4482
|
* @since 1.4.3
|
|
4473
4483
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
4474
4484
|
*
|
|
4475
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.
|
|
4476
4486
|
*
|
|
4477
|
-
* **Solution**: Instead of `.
|
|
4487
|
+
* **Solution**: Instead of `.focusin(fn)` use `.on("focusin", fn)`. Instead of `.focusin()` use `.trigger("focusin")`.
|
|
4478
4488
|
*/
|
|
4479
4489
|
focusin<TData>(
|
|
4480
4490
|
eventData: TData,
|
|
@@ -4483,13 +4493,13 @@ $( document ).ready(function() {
|
|
|
4483
4493
|
/**
|
|
4484
4494
|
* Bind an event handler to the "focusin" event.
|
|
4485
4495
|
* @param handler A function to execute each time the event is triggered.
|
|
4486
|
-
* @see \`{@link https://api.jquery.com/focusin/ }\`
|
|
4496
|
+
* @see \`{@link https://api.jquery.com/focusin-shorthand/ }\`
|
|
4487
4497
|
* @since 1.4
|
|
4488
4498
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
4489
4499
|
*
|
|
4490
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.
|
|
4491
4501
|
*
|
|
4492
|
-
* **Solution**: Instead of `.
|
|
4502
|
+
* **Solution**: Instead of `.focusin(fn)` use `.on("focusin", fn)`. Instead of `.focusin()` use `.focusin("click")`.
|
|
4493
4503
|
* @example ````Watch for a focus to occur within the paragraphs on the page.
|
|
4494
4504
|
```html
|
|
4495
4505
|
<!doctype html>
|
|
@@ -4534,7 +4544,7 @@ $( "p" ).focusin(function() {
|
|
|
4534
4544
|
*
|
|
4535
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.
|
|
4536
4546
|
*
|
|
4537
|
-
* **Solution**: Instead of `.
|
|
4547
|
+
* **Solution**: Instead of `.focusout(fn)` use `.on("focusout", fn)`. Instead of `.focusout()` use `.trigger("focusout")`.
|
|
4538
4548
|
*/
|
|
4539
4549
|
focusout<TData>(
|
|
4540
4550
|
eventData: TData,
|
|
@@ -4549,7 +4559,7 @@ $( "p" ).focusin(function() {
|
|
|
4549
4559
|
*
|
|
4550
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.
|
|
4551
4561
|
*
|
|
4552
|
-
* **Solution**: Instead of `.
|
|
4562
|
+
* **Solution**: Instead of `.focusout(fn)` use `.on("focusout", fn)`. Instead of `.focusout()` use `.trigger("focusout")`.
|
|
4553
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.)
|
|
4554
4564
|
```html
|
|
4555
4565
|
<!doctype html>
|
|
@@ -6021,13 +6031,13 @@ $( "li" ).click(function() {
|
|
|
6021
6031
|
* Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
|
|
6022
6032
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6023
6033
|
* @param handler A function to execute each time the event is triggered.
|
|
6024
|
-
* @see \`{@link https://api.jquery.com/keydown/ }\`
|
|
6034
|
+
* @see \`{@link https://api.jquery.com/keydown-shorthand/ }\`
|
|
6025
6035
|
* @since 1.4.3
|
|
6026
6036
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6027
6037
|
*
|
|
6028
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.
|
|
6029
6039
|
*
|
|
6030
|
-
* **Solution**: Instead of `.
|
|
6040
|
+
* **Solution**: Instead of `.keydown(fn)` use `.on("keydown", fn)`. Instead of `.keydown()` use `.trigger("keydown")`.
|
|
6031
6041
|
*/
|
|
6032
6042
|
keydown<TData>(
|
|
6033
6043
|
eventData: TData,
|
|
@@ -6036,13 +6046,13 @@ $( "li" ).click(function() {
|
|
|
6036
6046
|
/**
|
|
6037
6047
|
* Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
|
|
6038
6048
|
* @param handler A function to execute each time the event is triggered.
|
|
6039
|
-
* @see \`{@link https://api.jquery.com/keydown/ }\`
|
|
6049
|
+
* @see \`{@link https://api.jquery.com/keydown-shorthand/ }\`
|
|
6040
6050
|
* @since 1.0
|
|
6041
6051
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6042
6052
|
*
|
|
6043
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.
|
|
6044
6054
|
*
|
|
6045
|
-
* **Solution**: Instead of `.
|
|
6055
|
+
* **Solution**: Instead of `.keydown(fn)` use `.on("keydown", fn)`. Instead of `.keydown()` use `.trigger("keydown")`.
|
|
6046
6056
|
* @example ````Show the event object for the keydown handler when a key is pressed in the input.
|
|
6047
6057
|
```html
|
|
6048
6058
|
<!doctype html>
|
|
@@ -6113,13 +6123,13 @@ $( "#other" ).click(function() {
|
|
|
6113
6123
|
* Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
|
|
6114
6124
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6115
6125
|
* @param handler A function to execute each time the event is triggered.
|
|
6116
|
-
* @see \`{@link https://api.jquery.com/keypress/ }\`
|
|
6126
|
+
* @see \`{@link https://api.jquery.com/keypress-shorthand/ }\`
|
|
6117
6127
|
* @since 1.4.3
|
|
6118
6128
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6119
6129
|
*
|
|
6120
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.
|
|
6121
6131
|
*
|
|
6122
|
-
* **Solution**: Instead of `.
|
|
6132
|
+
* **Solution**: Instead of `.keypress(fn)` use `.on("keypress", fn)`. Instead of `.keypress()` use `.trigger("keypress")`.
|
|
6123
6133
|
*/
|
|
6124
6134
|
keypress<TData>(
|
|
6125
6135
|
eventData: TData,
|
|
@@ -6128,13 +6138,13 @@ $( "#other" ).click(function() {
|
|
|
6128
6138
|
/**
|
|
6129
6139
|
* Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
|
|
6130
6140
|
* @param handler A function to execute each time the event is triggered.
|
|
6131
|
-
* @see \`{@link https://api.jquery.com/keypress/ }\`
|
|
6141
|
+
* @see \`{@link https://api.jquery.com/keypress-shorthand/ }\`
|
|
6132
6142
|
* @since 1.0
|
|
6133
6143
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6134
6144
|
*
|
|
6135
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.
|
|
6136
6146
|
*
|
|
6137
|
-
* **Solution**: Instead of `.
|
|
6147
|
+
* **Solution**: Instead of `.keypress(fn)` use `.on("keypress", fn)`. Instead of `.keypress()` use `.trigger("keypress")`.
|
|
6138
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.
|
|
6139
6149
|
```html
|
|
6140
6150
|
<!doctype html>
|
|
@@ -6211,7 +6221,7 @@ $( "#other" ).click(function() {
|
|
|
6211
6221
|
*
|
|
6212
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.
|
|
6213
6223
|
*
|
|
6214
|
-
* **Solution**: Instead of `.
|
|
6224
|
+
* **Solution**: Instead of `.keyup(fn)` use `.on("keyup", fn)`. Instead of `.keyup()` use `.trigger("keyup")`.
|
|
6215
6225
|
*/
|
|
6216
6226
|
keyup<TData>(
|
|
6217
6227
|
eventData: TData,
|
|
@@ -6226,7 +6236,7 @@ $( "#other" ).click(function() {
|
|
|
6226
6236
|
*
|
|
6227
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.
|
|
6228
6238
|
*
|
|
6229
|
-
* **Solution**: Instead of `.
|
|
6239
|
+
* **Solution**: Instead of `.keyup(fn)` use `.on("keyup", fn)`. Instead of `.keyup()` use `.trigger("keyup")`.
|
|
6230
6240
|
* @example ````Show the event object for the keyup handler (using a simple $.print plugin) when a key is released in the input.
|
|
6231
6241
|
```html
|
|
6232
6242
|
<!doctype html>
|
|
@@ -6666,13 +6676,13 @@ $( "input" ).click(function() {
|
|
|
6666
6676
|
* Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
|
|
6667
6677
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6668
6678
|
* @param handler A function to execute each time the event is triggered.
|
|
6669
|
-
* @see \`{@link https://api.jquery.com/mousedown/ }\`
|
|
6679
|
+
* @see \`{@link https://api.jquery.com/mousedown-shorthand/ }\`
|
|
6670
6680
|
* @since 1.4.3
|
|
6671
6681
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6672
6682
|
*
|
|
6673
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.
|
|
6674
6684
|
*
|
|
6675
|
-
* **Solution**: Instead of `.
|
|
6685
|
+
* **Solution**: Instead of `.mousedown(fn)` use `.on("mousedown", fn)`. Instead of `.mousedown()` use `.trigger("mousedown")`.
|
|
6676
6686
|
*/
|
|
6677
6687
|
mousedown<TData>(
|
|
6678
6688
|
eventData: TData,
|
|
@@ -6681,13 +6691,13 @@ $( "input" ).click(function() {
|
|
|
6681
6691
|
/**
|
|
6682
6692
|
* Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
|
|
6683
6693
|
* @param handler A function to execute each time the event is triggered.
|
|
6684
|
-
* @see \`{@link https://api.jquery.com/mousedown/ }\`
|
|
6694
|
+
* @see \`{@link https://api.jquery.com/mousedown-shorthand/ }\`
|
|
6685
6695
|
* @since 1.0
|
|
6686
6696
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6687
6697
|
*
|
|
6688
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.
|
|
6689
6699
|
*
|
|
6690
|
-
* **Solution**: Instead of `.
|
|
6700
|
+
* **Solution**: Instead of `.mousedown(fn)` use `.on("mousedown", fn)`. Instead of `.mousedown()` use `.trigger("mousedown")`.
|
|
6691
6701
|
* @example ````Show texts when mouseup and mousedown event triggering.
|
|
6692
6702
|
```html
|
|
6693
6703
|
<!doctype html>
|
|
@@ -6724,13 +6734,13 @@ $( "p" )
|
|
|
6724
6734
|
* Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.
|
|
6725
6735
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6726
6736
|
* @param handler A function to execute each time the event is triggered.
|
|
6727
|
-
* @see \`{@link https://api.jquery.com/mouseenter/ }\`
|
|
6737
|
+
* @see \`{@link https://api.jquery.com/mouseenter-shorthand/ }\`
|
|
6728
6738
|
* @since 1.4.3
|
|
6729
6739
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6730
6740
|
*
|
|
6731
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.
|
|
6732
6742
|
*
|
|
6733
|
-
* **Solution**: Instead of `.
|
|
6743
|
+
* **Solution**: Instead of `.mouseenter(fn)` use `.on("mouseenter", fn)`. Instead of `.mouseenter()` use `.trigger("mouseenter")`.
|
|
6734
6744
|
*/
|
|
6735
6745
|
mouseenter<TData>(
|
|
6736
6746
|
eventData: TData,
|
|
@@ -6739,13 +6749,13 @@ $( "p" )
|
|
|
6739
6749
|
/**
|
|
6740
6750
|
* Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.
|
|
6741
6751
|
* @param handler A function to execute each time the event is triggered.
|
|
6742
|
-
* @see \`{@link https://api.jquery.com/mouseenter/ }\`
|
|
6752
|
+
* @see \`{@link https://api.jquery.com/mouseenter-shorthand/ }\`
|
|
6743
6753
|
* @since 1.0
|
|
6744
6754
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6745
6755
|
*
|
|
6746
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.
|
|
6747
6757
|
*
|
|
6748
|
-
* **Solution**: Instead of `.
|
|
6758
|
+
* **Solution**: Instead of `.mouseenter(fn)` use `.on("mouseenter", fn)`. Instead of `.mouseenter()` use `.trigger("mouseenter")`.
|
|
6749
6759
|
* @example ````Show texts when mouseenter and mouseout event triggering.
|
|
6750
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.
|
|
6751
6761
|
```html
|
|
@@ -6825,13 +6835,13 @@ $( "div.enterleave" )
|
|
|
6825
6835
|
* Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.
|
|
6826
6836
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6827
6837
|
* @param handler A function to execute each time the event is triggered.
|
|
6828
|
-
* @see \`{@link https://api.jquery.com/mouseleave/ }\`
|
|
6838
|
+
* @see \`{@link https://api.jquery.com/mouseleave-shorthand/ }\`
|
|
6829
6839
|
* @since 1.4.3
|
|
6830
6840
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6831
6841
|
*
|
|
6832
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.
|
|
6833
6843
|
*
|
|
6834
|
-
* **Solution**: Instead of `.
|
|
6844
|
+
* **Solution**: Instead of `.mouseleave(fn)` use `.on("mouseleave", fn)`. Instead of `.mouseleave()` use `.trigger("mouseleave")`.
|
|
6835
6845
|
*/
|
|
6836
6846
|
mouseleave<TData>(
|
|
6837
6847
|
eventData: TData,
|
|
@@ -6840,13 +6850,13 @@ $( "div.enterleave" )
|
|
|
6840
6850
|
/**
|
|
6841
6851
|
* Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.
|
|
6842
6852
|
* @param handler A function to execute each time the event is triggered.
|
|
6843
|
-
* @see \`{@link https://api.jquery.com/mouseleave/ }\`
|
|
6853
|
+
* @see \`{@link https://api.jquery.com/mouseleave-shorthand/ }\`
|
|
6844
6854
|
* @since 1.0
|
|
6845
6855
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6846
6856
|
*
|
|
6847
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.
|
|
6848
6858
|
*
|
|
6849
|
-
* **Solution**: Instead of `.
|
|
6859
|
+
* **Solution**: Instead of `.mouseleave(fn)` use `.on("mouseleave", fn)`. Instead of `.mouseleave()` use `.trigger("mouseleave")`.
|
|
6850
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.
|
|
6851
6861
|
```html
|
|
6852
6862
|
<!doctype html>
|
|
@@ -6924,13 +6934,13 @@ $( "div.enterleave" )
|
|
|
6924
6934
|
* Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
|
|
6925
6935
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
6926
6936
|
* @param handler A function to execute each time the event is triggered.
|
|
6927
|
-
* @see \`{@link https://api.jquery.com/mousemove/ }\`
|
|
6937
|
+
* @see \`{@link https://api.jquery.com/mousemove-shorthand/ }\`
|
|
6928
6938
|
* @since 1.4.3
|
|
6929
6939
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6930
6940
|
*
|
|
6931
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.
|
|
6932
6942
|
*
|
|
6933
|
-
* **Solution**: Instead of `.
|
|
6943
|
+
* **Solution**: Instead of `.mousemove(fn)` use `.on("mousemove", fn)`. Instead of `.mousemove()` use `.trigger("mousemove")`.
|
|
6934
6944
|
*/
|
|
6935
6945
|
mousemove<TData>(
|
|
6936
6946
|
eventData: TData,
|
|
@@ -6939,13 +6949,13 @@ $( "div.enterleave" )
|
|
|
6939
6949
|
/**
|
|
6940
6950
|
* Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
|
|
6941
6951
|
* @param handler A function to execute each time the event is triggered.
|
|
6942
|
-
* @see \`{@link https://api.jquery.com/mousemove/ }\`
|
|
6952
|
+
* @see \`{@link https://api.jquery.com/mousemove-shorthand/ }\`
|
|
6943
6953
|
* @since 1.0
|
|
6944
6954
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
6945
6955
|
*
|
|
6946
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.
|
|
6947
6957
|
*
|
|
6948
|
-
* **Solution**: Instead of `.
|
|
6958
|
+
* **Solution**: Instead of `.mousemove(fn)` use `.on("mousemove", fn)`. Instead of `.mousemove()` use `.trigger("mousemove")`.
|
|
6949
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.
|
|
6950
6960
|
```html
|
|
6951
6961
|
<!doctype html>
|
|
@@ -7008,13 +7018,13 @@ $( "div" ).mousemove(function( event ) {
|
|
|
7008
7018
|
* Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
|
|
7009
7019
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
7010
7020
|
* @param handler A function to execute each time the event is triggered.
|
|
7011
|
-
* @see \`{@link https://api.jquery.com/mouseout/ }\`
|
|
7021
|
+
* @see \`{@link https://api.jquery.com/mouseout-shorthand/ }\`
|
|
7012
7022
|
* @since 1.4.3
|
|
7013
7023
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7014
7024
|
*
|
|
7015
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.
|
|
7016
7026
|
*
|
|
7017
|
-
* **Solution**: Instead of `.
|
|
7027
|
+
* **Solution**: Instead of `.mouseout(fn)` use `.on("mouseout", fn)`. Instead of `.mouseout()` use `.trigger("mouseout")`.
|
|
7018
7028
|
*/
|
|
7019
7029
|
mouseout<TData>(
|
|
7020
7030
|
eventData: TData,
|
|
@@ -7023,13 +7033,13 @@ $( "div" ).mousemove(function( event ) {
|
|
|
7023
7033
|
/**
|
|
7024
7034
|
* Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
|
|
7025
7035
|
* @param handler A function to execute each time the event is triggered.
|
|
7026
|
-
* @see \`{@link https://api.jquery.com/mouseout/ }\`
|
|
7036
|
+
* @see \`{@link https://api.jquery.com/mouseout-shorthand/ }\`
|
|
7027
7037
|
* @since 1.0
|
|
7028
7038
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7029
7039
|
*
|
|
7030
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.
|
|
7031
7041
|
*
|
|
7032
|
-
* **Solution**: Instead of `.
|
|
7042
|
+
* **Solution**: Instead of `.mouseout(fn)` use `.on("mouseout", fn)`. Instead of `.mouseout()` use `.trigger("mouseout")`.
|
|
7033
7043
|
* @example ````Show the number of times mouseout and mouseleave events are triggered.
|
|
7034
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.
|
|
7035
7045
|
```html
|
|
@@ -7109,13 +7119,13 @@ $( "div.enterleave" )
|
|
|
7109
7119
|
* Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
|
|
7110
7120
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
7111
7121
|
* @param handler A function to execute each time the event is triggered.
|
|
7112
|
-
* @see \`{@link https://api.jquery.com/mouseover/ }\`
|
|
7122
|
+
* @see \`{@link https://api.jquery.com/mouseover-shorthand/ }\`
|
|
7113
7123
|
* @since 1.4.3
|
|
7114
7124
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7115
7125
|
*
|
|
7116
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.
|
|
7117
7127
|
*
|
|
7118
|
-
* **Solution**: Instead of `.
|
|
7128
|
+
* **Solution**: Instead of `.mouseover(fn)` use `.on("mouseover", fn)`. Instead of `.mouseover()` use `.trigger("mouseover")`.
|
|
7119
7129
|
*/
|
|
7120
7130
|
mouseover<TData>(
|
|
7121
7131
|
eventData: TData,
|
|
@@ -7124,13 +7134,13 @@ $( "div.enterleave" )
|
|
|
7124
7134
|
/**
|
|
7125
7135
|
* Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
|
|
7126
7136
|
* @param handler A function to execute each time the event is triggered.
|
|
7127
|
-
* @see \`{@link https://api.jquery.com/mouseover/ }\`
|
|
7137
|
+
* @see \`{@link https://api.jquery.com/mouseover-shorthand/ }\`
|
|
7128
7138
|
* @since 1.0
|
|
7129
7139
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7130
7140
|
*
|
|
7131
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.
|
|
7132
7142
|
*
|
|
7133
|
-
* **Solution**: Instead of `.
|
|
7143
|
+
* **Solution**: Instead of `.mouseover(fn)` use `.on("mouseover", fn)`. Instead of `.mouseover()` use `.trigger("mouseover")`.
|
|
7134
7144
|
* @example ````Show the number of times mouseover and mouseenter events are triggered.
|
|
7135
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.
|
|
7136
7146
|
```html
|
|
@@ -7210,13 +7220,13 @@ $( "div.enterleave" )
|
|
|
7210
7220
|
* Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
|
|
7211
7221
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
7212
7222
|
* @param handler A function to execute each time the event is triggered.
|
|
7213
|
-
* @see \`{@link https://api.jquery.com/mouseup/ }\`
|
|
7223
|
+
* @see \`{@link https://api.jquery.com/mouseup-shorthand/ }\`
|
|
7214
7224
|
* @since 1.4.3
|
|
7215
7225
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7216
7226
|
*
|
|
7217
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.
|
|
7218
7228
|
*
|
|
7219
|
-
* **Solution**: Instead of `.
|
|
7229
|
+
* **Solution**: Instead of `.mouseup(fn)` use `.on("mouseup", fn)`. Instead of `.mouseup()` use `.trigger("mouseup")`.
|
|
7220
7230
|
*/
|
|
7221
7231
|
mouseup<TData>(
|
|
7222
7232
|
eventData: TData,
|
|
@@ -7225,13 +7235,13 @@ $( "div.enterleave" )
|
|
|
7225
7235
|
/**
|
|
7226
7236
|
* Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
|
|
7227
7237
|
* @param handler A function to execute each time the event is triggered.
|
|
7228
|
-
* @see \`{@link https://api.jquery.com/mouseup/ }\`
|
|
7238
|
+
* @see \`{@link https://api.jquery.com/mouseup-shorthand/ }\`
|
|
7229
7239
|
* @since 1.0
|
|
7230
7240
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
7231
7241
|
*
|
|
7232
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.
|
|
7233
7243
|
*
|
|
7234
|
-
* **Solution**: Instead of `.
|
|
7244
|
+
* **Solution**: Instead of `.mouseup(fn)` use `.on("mouseup", fn)`. Instead of `.mouseup()` use `.trigger("mouseup")`.
|
|
7235
7245
|
* @example ````Show texts when mouseup and mousedown event triggering.
|
|
7236
7246
|
```html
|
|
7237
7247
|
<!doctype html>
|
|
@@ -10331,13 +10341,13 @@ $( "button" ).on( "click", function() {
|
|
|
10331
10341
|
* Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.
|
|
10332
10342
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
10333
10343
|
* @param handler A function to execute each time the event is triggered.
|
|
10334
|
-
* @see \`{@link https://api.jquery.com/resize/ }\`
|
|
10344
|
+
* @see \`{@link https://api.jquery.com/resize-shorthand/ }\`
|
|
10335
10345
|
* @since 1.4.3
|
|
10336
10346
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10337
10347
|
*
|
|
10338
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.
|
|
10339
10349
|
*
|
|
10340
|
-
* **Solution**: Instead of `.
|
|
10350
|
+
* **Solution**: Instead of `.resize(fn)` use `.on("resize", fn)`. Instead of `.resize()` use `.trigger("resize")`.
|
|
10341
10351
|
*/
|
|
10342
10352
|
resize<TData>(
|
|
10343
10353
|
eventData: TData,
|
|
@@ -10346,13 +10356,13 @@ $( "button" ).on( "click", function() {
|
|
|
10346
10356
|
/**
|
|
10347
10357
|
* Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.
|
|
10348
10358
|
* @param handler A function to execute each time the event is triggered.
|
|
10349
|
-
* @see \`{@link https://api.jquery.com/resize/ }\`
|
|
10359
|
+
* @see \`{@link https://api.jquery.com/resize-shorthand/ }\`
|
|
10350
10360
|
* @since 1.0
|
|
10351
10361
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10352
10362
|
*
|
|
10353
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.
|
|
10354
10364
|
*
|
|
10355
|
-
* **Solution**: Instead of `.
|
|
10365
|
+
* **Solution**: Instead of `.resize(fn)` use `.on("resize", fn)`. Instead of `.resize()` use `.trigger("resize")`.
|
|
10356
10366
|
* @example ````To see the window width while (or after) it is resized, try:
|
|
10357
10367
|
```javascript
|
|
10358
10368
|
$( window ).resize(function() {
|
|
@@ -10369,13 +10379,13 @@ $( window ).resize(function() {
|
|
|
10369
10379
|
* Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.
|
|
10370
10380
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
10371
10381
|
* @param handler A function to execute each time the event is triggered.
|
|
10372
|
-
* @see \`{@link https://api.jquery.com/scroll/ }\`
|
|
10382
|
+
* @see \`{@link https://api.jquery.com/scroll-shorthand/ }\`
|
|
10373
10383
|
* @since 1.4.3
|
|
10374
10384
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10375
10385
|
*
|
|
10376
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.
|
|
10377
10387
|
*
|
|
10378
|
-
* **Solution**: Instead of `.
|
|
10388
|
+
* **Solution**: Instead of `.scroll(fn)` use `.on("scroll", fn)`. Instead of `.scroll()` use `.trigger("scroll")`.
|
|
10379
10389
|
*/
|
|
10380
10390
|
scroll<TData>(
|
|
10381
10391
|
eventData: TData,
|
|
@@ -10384,13 +10394,13 @@ $( window ).resize(function() {
|
|
|
10384
10394
|
/**
|
|
10385
10395
|
* Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.
|
|
10386
10396
|
* @param handler A function to execute each time the event is triggered.
|
|
10387
|
-
* @see \`{@link https://api.jquery.com/scroll/ }\`
|
|
10397
|
+
* @see \`{@link https://api.jquery.com/scroll-shorthand/ }\`
|
|
10388
10398
|
* @since 1.0
|
|
10389
10399
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10390
10400
|
*
|
|
10391
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.
|
|
10392
10402
|
*
|
|
10393
|
-
* **Solution**: Instead of `.
|
|
10403
|
+
* **Solution**: Instead of `.scroll(fn)` use `.on("scroll", fn)`. Instead of `.scroll()` use `.trigger("scroll")`.
|
|
10394
10404
|
* @example ````To do something when your page is scrolled:
|
|
10395
10405
|
```html
|
|
10396
10406
|
<!doctype html>
|
|
@@ -10599,13 +10609,13 @@ $( "p:last" ).text( "scrollTop:" + p.scrollTop() );
|
|
|
10599
10609
|
* Bind an event handler to the "select" JavaScript event, or trigger that event on an element.
|
|
10600
10610
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
10601
10611
|
* @param handler A function to execute each time the event is triggered.
|
|
10602
|
-
* @see \`{@link https://api.jquery.com/select/ }\`
|
|
10612
|
+
* @see \`{@link https://api.jquery.com/select-shorthand/ }\`
|
|
10603
10613
|
* @since 1.4.3
|
|
10604
10614
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10605
10615
|
*
|
|
10606
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.
|
|
10607
10617
|
*
|
|
10608
|
-
* **Solution**: Instead of `.
|
|
10618
|
+
* **Solution**: Instead of `.select(fn)` use `.on("select", fn)`. Instead of `.select()` use `.trigger("select")`.
|
|
10609
10619
|
*/
|
|
10610
10620
|
select<TData>(
|
|
10611
10621
|
eventData: TData,
|
|
@@ -10614,13 +10624,13 @@ $( "p:last" ).text( "scrollTop:" + p.scrollTop() );
|
|
|
10614
10624
|
/**
|
|
10615
10625
|
* Bind an event handler to the "select" JavaScript event, or trigger that event on an element.
|
|
10616
10626
|
* @param handler A function to execute each time the event is triggered.
|
|
10617
|
-
* @see \`{@link https://api.jquery.com/select/ }\`
|
|
10627
|
+
* @see \`{@link https://api.jquery.com/select-shorthand/ }\`
|
|
10618
10628
|
* @since 1.0
|
|
10619
10629
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
10620
10630
|
*
|
|
10621
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.
|
|
10622
10632
|
*
|
|
10623
|
-
* **Solution**: Instead of `.
|
|
10633
|
+
* **Solution**: Instead of `.select(fn)` use `.on("select", fn)`. Instead of `.select()` use `.trigger("select")`.
|
|
10624
10634
|
* @example ````To do something when text in input boxes is selected:
|
|
10625
10635
|
```html
|
|
10626
10636
|
<!doctype html>
|
|
@@ -11645,13 +11655,13 @@ $( "#toggle" ).on( "click", function() {
|
|
|
11645
11655
|
* Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
|
|
11646
11656
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
11647
11657
|
* @param handler A function to execute each time the event is triggered.
|
|
11648
|
-
* @see \`{@link https://api.jquery.com/submit/ }\`
|
|
11658
|
+
* @see \`{@link https://api.jquery.com/submit-shorthand/ }\`
|
|
11649
11659
|
* @since 1.4.3
|
|
11650
11660
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
11651
11661
|
*
|
|
11652
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.
|
|
11653
11663
|
*
|
|
11654
|
-
* **Solution**: Instead of `.
|
|
11664
|
+
* **Solution**: Instead of `.submit(fn)` use `.on("submit", fn)`. Instead of `.submit()` use `.trigger("submit")`.
|
|
11655
11665
|
*/
|
|
11656
11666
|
submit<TData>(
|
|
11657
11667
|
eventData: TData,
|
|
@@ -11660,13 +11670,13 @@ $( "#toggle" ).on( "click", function() {
|
|
|
11660
11670
|
/**
|
|
11661
11671
|
* Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
|
|
11662
11672
|
* @param handler A function to execute each time the event is triggered.
|
|
11663
|
-
* @see \`{@link https://api.jquery.com/submit/ }\`
|
|
11673
|
+
* @see \`{@link https://api.jquery.com/submit-shorthand/ }\`
|
|
11664
11674
|
* @since 1.0
|
|
11665
11675
|
* @deprecated Deprecated since 3.3. Use \`{@link on }\` or \`{@link trigger }\`.
|
|
11666
11676
|
*
|
|
11667
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.
|
|
11668
11678
|
*
|
|
11669
|
-
* **Solution**: Instead of `.
|
|
11679
|
+
* **Solution**: Instead of `.submit(fn)` use `.on("submit", fn)`. Instead of `.submit()` use `.trigger("submit")`.
|
|
11670
11680
|
* @example ````If you'd like to prevent forms from being submitted unless a flag variable is set, try:
|
|
11671
11681
|
```html
|
|
11672
11682
|
<!doctype html>
|
jquery/JQueryStatic.d.ts
CHANGED
|
@@ -305,6 +305,7 @@ $.ajax({
|
|
|
305
305
|
options: JQuery.AjaxSettings,
|
|
306
306
|
originalOptions: JQuery.AjaxSettings,
|
|
307
307
|
jqXHR: JQuery.jqXHR,
|
|
308
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
308
309
|
) => string | void,
|
|
309
310
|
): void;
|
|
310
311
|
/**
|
|
@@ -318,6 +319,7 @@ $.ajax({
|
|
|
318
319
|
options: JQuery.AjaxSettings,
|
|
319
320
|
originalOptions: JQuery.AjaxSettings,
|
|
320
321
|
jqXHR: JQuery.jqXHR,
|
|
322
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
321
323
|
) => string | void,
|
|
322
324
|
): void;
|
|
323
325
|
/**
|
|
@@ -349,6 +351,7 @@ $.ajax({ data: myData });
|
|
|
349
351
|
options: JQuery.AjaxSettings,
|
|
350
352
|
originalOptions: JQuery.AjaxSettings,
|
|
351
353
|
jqXHR: JQuery.jqXHR,
|
|
354
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
352
355
|
) => JQuery.Transport | void,
|
|
353
356
|
): void;
|
|
354
357
|
/**
|
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/misc.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ declare namespace JQuery {
|
|
|
95
95
|
/**
|
|
96
96
|
* A pre-request callback function that can be used to modify the jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object before it is sent. Use this to set custom headers, etc. The jqXHR and settings objects are passed as arguments. This is an Ajax Event. Returning false in the beforeSend function will cancel the request. As of jQuery 1.5, the beforeSend option will be called regardless of the type of request.
|
|
97
97
|
*/
|
|
98
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
98
99
|
beforeSend?(this: TContext, jqXHR: jqXHR, settings: this): false | void;
|
|
99
100
|
/**
|
|
100
101
|
* If set to false, it will force requested pages not to be cached by the browser. Note: Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET.
|
|
@@ -4241,6 +4242,7 @@ $.get( "test.php" )
|
|
|
4241
4242
|
element: TElement,
|
|
4242
4243
|
props: PlainObject,
|
|
4243
4244
|
opts: EffectsOptions<TElement>,
|
|
4245
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
4244
4246
|
) => Animation<TElement> | _Falsy | void,
|
|
4245
4247
|
prepend?: boolean,
|
|
4246
4248
|
): void;
|
|
@@ -7187,6 +7189,7 @@ $( "#checkMetaKey" ).click(function( event ) {
|
|
|
7187
7189
|
* This hook can perform whatever processing it desires, including attaching its own event handlers to the element or to other elements and recording setup information on the element using the `jQuery.data()` method. If the setup hook wants jQuery to add a browser event (via `addEventListener` or `attachEvent`, depending on browser) it should return `false`. In all other cases, jQuery will not add the browser event, but will continue all its other bookkeeping for the event. This would be appropriate, for example, if the event was never fired by the browser but invoked by `.trigger()`. To attach the jQuery event handler in the setup hook, use the `eventHandle` argument.
|
|
7188
7190
|
* @see \`{@link https://learn.jquery.com/events/event-extensions/#setup-function-data-object-namespaces-eventhandle-function }\`
|
|
7189
7191
|
*/
|
|
7192
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7190
7193
|
setup(this: TTarget, data: TData, namespaces: string, eventHandle: EventHandler<TTarget, TData>): void | false;
|
|
7191
7194
|
} | {
|
|
7192
7195
|
/**
|
|
@@ -7195,6 +7198,7 @@ $( "#checkMetaKey" ).click(function( event ) {
|
|
|
7195
7198
|
* If the setup hook attached event handlers or added data to an element through a mechanism such as `jQuery.data()`, the teardown hook should reverse the process and remove them. jQuery will generally remove the data and events when an element is totally removed from the document, but failing to remove data or events on teardown will cause a memory leak if the element stays in the document.
|
|
7196
7199
|
* @see \`{@link https://learn.jquery.com/events/event-extensions/#teardown-function }\`
|
|
7197
7200
|
*/
|
|
7201
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7198
7202
|
teardown(this: TTarget): void | false;
|
|
7199
7203
|
} | {
|
|
7200
7204
|
/**
|
|
@@ -7215,12 +7219,14 @@ $( "#checkMetaKey" ).click(function( event ) {
|
|
|
7215
7219
|
* The trigger hook is called early in the process of triggering an event, just after the `jQuery.Event` object is constructed and before any handlers have been called. It can process the triggered event in any way, for example by calling `event.stopPropagation()` or `event.preventDefault()` before returning. If the hook returns `false`, jQuery does not perform any further event triggering actions and returns immediately. Otherwise, it performs the normal trigger processing, calling any event handlers for the element and bubbling the event (unless propagation is stopped in advance or `noBubble` was specified for the special event) to call event handlers attached to parent elements.
|
|
7216
7220
|
* @see \`{@link https://learn.jquery.com/events/event-extensions/#trigger-function-event-jquery-event-data-object }\`
|
|
7217
7221
|
*/
|
|
7222
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7218
7223
|
trigger(this: TTarget, event: Event, data: TData): void | false;
|
|
7219
7224
|
} | {
|
|
7220
7225
|
/**
|
|
7221
7226
|
* When the `.trigger()` method finishes running all the event handlers for an event, it also looks for and runs any method on the target object by the same name unless of the handlers called `event.preventDefault()`. So, `.trigger( "submit" )` will execute the `submit()` method on the element if one exists. When a `_default` hook is specified, the hook is called just prior to checking for and executing the element's default method. If this hook returns the value `false` the element's default method will be called; otherwise it is not.
|
|
7222
7227
|
* @see \`{@link https://learn.jquery.com/events/event-extensions/#_default-function-event-jquery-event-data-object }\`
|
|
7223
7228
|
*/
|
|
7229
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7224
7230
|
_default(event: TriggeredEvent<TTarget, TData>, data: TData): void | false;
|
|
7225
7231
|
} | {
|
|
7226
7232
|
/**
|
|
@@ -7235,6 +7241,7 @@ $( "#checkMetaKey" ).click(function( event ) {
|
|
|
7235
7241
|
...data: TData[]
|
|
7236
7242
|
): void;
|
|
7237
7243
|
} | {
|
|
7244
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7238
7245
|
preDispatch(this: TTarget, event: Event): false | void;
|
|
7239
7246
|
} | {
|
|
7240
7247
|
postDispatch(this: TTarget, event: Event): void;
|
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
|
}
|