@@ -200,7 +200,7 @@ jQuery.prototype.add = function(arg1, context) {};
200
200
jQuery . prototype . addBack = function ( arg1 ) { } ;
201
201
202
202
/**
203
- * @param {(string|function(number,String)) } arg1
203
+ * @param {(string|Array<string>| function(number,String)) } arg1
204
204
* @return {!jQuery }
205
205
*/
206
206
jQuery . prototype . addClass = function ( arg1 ) { } ;
@@ -305,8 +305,16 @@ jQuery.prototype.append = function(arg1, content) {};
305
305
jQuery . prototype . appendTo = function ( target ) { } ;
306
306
307
307
/**
308
- * @param {(string|Object<string,*>) } arg1
309
- * @param {(string|number|boolean|function(number,string))= } arg2
308
+ * Only call this method with the following combinations of arguments:
309
+ * function(string, (string|number|undefined))
310
+ * function(!Object<string, (string|number)>)
311
+ * function(string, function(this:Element number,string):(string|number))
312
+ *
313
+ * See https://api.jquery.com/attr/#attr2
314
+ *
315
+ * @param {(string|!Object<string,(string|number)>) } arg1
316
+ * @param {(string|number|function(this:Element,number,string):(string|number))= }
317
+ * arg2
310
318
* @return {(string|!jQuery) }
311
319
*/
312
320
jQuery . prototype . attr = function ( arg1 , arg2 ) { } ;
@@ -331,6 +339,7 @@ jQuery.prototype.bind = function(arg1, eventData, arg3) {};
331
339
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
332
340
* @param {function(!jQuery.Event)= } handler
333
341
* @return {!jQuery }
342
+ * @deprecated Please use .on( "blur", handler ) instead.
334
343
*/
335
344
jQuery . prototype . blur = function ( arg1 , handler ) { } ;
336
345
@@ -408,6 +417,7 @@ jQuery.callbacks.prototype.remove = function(callbacks) {};
408
417
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
409
418
* @param {function(!jQuery.Event)= } handler
410
419
* @return {!jQuery }
420
+ * @deprecated Please use .on( "change", handler ) instead.
411
421
*/
412
422
jQuery . prototype . change = function ( arg1 , handler ) { } ;
413
423
@@ -428,6 +438,7 @@ jQuery.prototype.clearQueue = function(queueName) {};
428
438
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
429
439
* @param {function(!jQuery.Event)= } handler
430
440
* @return {!jQuery }
441
+ * @deprecated Please use .on( "click", handler ) instead.
431
442
*/
432
443
jQuery . prototype . click = function ( arg1 , handler ) { } ;
433
444
@@ -461,6 +472,14 @@ jQuery.contains = function(container, contained) {};
461
472
*/
462
473
jQuery . prototype . contents = function ( ) { } ;
463
474
475
+ /**
476
+ * @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
477
+ * @param {function(!jQuery.Event)= } handler
478
+ * @return {!jQuery }
479
+ * @deprecated Please use .on( "contextmenu", handler ) instead.
480
+ */
481
+ jQuery . prototype . contextmenu = function ( arg1 , handler ) { } ;
482
+
464
483
/**
465
484
* @param {(string|Object<string,*>) } arg1
466
485
* @param {(string|number|function(number,*))= } arg2
@@ -491,6 +510,7 @@ jQuery.prototype.data = function(arg1, value) {};
491
510
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
492
511
* @param {function(!jQuery.Event)= } handler
493
512
* @return {!jQuery }
513
+ * @deprecated Please use .on( "dblclick", handler ) instead.
494
514
*/
495
515
jQuery . prototype . dblclick = function ( arg1 , handler ) { } ;
496
516
@@ -845,7 +865,7 @@ jQuery.Event.prototype.type;
845
865
/** @type {Window } */
846
866
jQuery . Event . prototype . view ;
847
867
848
- /** @type {number } */
868
+ /** @type {number } @deprecated */
849
869
jQuery . Event . prototype . which ;
850
870
851
871
/**
@@ -922,20 +942,23 @@ jQuery.fn = jQuery.prototype;
922
942
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
923
943
* @param {function(!jQuery.Event)= } handler
924
944
* @return {!jQuery }
945
+ * @deprecated Please use .on( "focus", handler ) instead.
925
946
*/
926
947
jQuery . prototype . focus = function ( arg1 , handler ) { } ;
927
948
928
949
/**
929
950
* @param {(function(!jQuery.Event)|Object<string, *>) } arg1
930
951
* @param {function(!jQuery.Event)= } handler
931
952
* @return {!jQuery }
953
+ * @deprecated Please use .on( "focusin", handler ) instead.
932
954
*/
933
955
jQuery . prototype . focusin = function ( arg1 , handler ) { } ;
934
956
935
957
/**
936
958
* @param {(function(!jQuery.Event)|Object<string, *>) } arg1
937
959
* @param {function(!jQuery.Event)= } handler
938
960
* @return {!jQuery }
961
+ * @deprecated Please use .on( "focusout", handler ) instead.
939
962
*/
940
963
jQuery . prototype . focusout = function ( arg1 , handler ) { } ;
941
964
@@ -1040,6 +1063,7 @@ jQuery.holdReady = function(hold) {};
1040
1063
* @param {function(!jQuery.Event) } arg1
1041
1064
* @param {function(!jQuery.Event)= } handlerOut
1042
1065
* @return {!jQuery }
1066
+ * @deprecated Please use .on( "mouseenter", handler ) and .on( "mouseleave", handler ) instead.
1043
1067
*/
1044
1068
jQuery . prototype . hover = function ( arg1 , handlerOut ) { } ;
1045
1069
@@ -1121,13 +1145,15 @@ jQuery.isEmptyObject = function(obj) {};
1121
1145
* @param {* } obj
1122
1146
* @return {boolean }
1123
1147
* @nosideeffects
1148
+ * @deprecated
1124
1149
*/
1125
1150
jQuery . isFunction = function ( obj ) { } ;
1126
1151
1127
1152
/**
1128
1153
* @param {* } value
1129
1154
* @return {boolean }
1130
1155
* @nosideeffects
1156
+ * @deprecated
1131
1157
*/
1132
1158
jQuery . isNumeric = function ( value ) { } ;
1133
1159
@@ -1142,6 +1168,7 @@ jQuery.isPlainObject = function(obj) {};
1142
1168
* @param {* } obj
1143
1169
* @return {boolean }
1144
1170
* @nosideeffects
1171
+ * @deprecated
1145
1172
*/
1146
1173
jQuery . isWindow = function ( obj ) { } ;
1147
1174
@@ -1262,20 +1289,23 @@ jQuery.jqXHR.prototype.then =
1262
1289
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1263
1290
* @param {function(!jQuery.Event)= } handler
1264
1291
* @return {!jQuery }
1292
+ * @deprecated Please use .on( "keydown", handler ) instead.
1265
1293
*/
1266
1294
jQuery . prototype . keydown = function ( arg1 , handler ) { } ;
1267
1295
1268
1296
/**
1269
1297
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1270
1298
* @param {function(!jQuery.Event)= } handler
1271
1299
* @return {!jQuery }
1300
+ * @deprecated Please use .on( "keypress", handler ) instead.
1272
1301
*/
1273
1302
jQuery . prototype . keypress = function ( arg1 , handler ) { } ;
1274
1303
1275
1304
/**
1276
1305
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1277
1306
* @param {function(!jQuery.Event)= } handler
1278
1307
* @return {!jQuery }
1308
+ * @deprecated Please use .on( "keyup", handler ) instead.
1279
1309
*/
1280
1310
jQuery . prototype . keyup = function ( arg1 , handler ) { } ;
1281
1311
@@ -1290,7 +1320,7 @@ jQuery.prototype.length;
1290
1320
1291
1321
/**
1292
1322
* @param {* } obj
1293
- * @return {Array<*> }
1323
+ * @return {! Array<*> }
1294
1324
* @nosideeffects
1295
1325
*/
1296
1326
jQuery . makeArray = function ( obj ) { } ;
@@ -1320,48 +1350,55 @@ jQuery.merge = function(first, second) {};
1320
1350
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1321
1351
* @param {function(!jQuery.Event)= } handler
1322
1352
* @return {!jQuery }
1353
+ * @deprecated Please use .on( "mousedown", handler ) instead.
1323
1354
*/
1324
1355
jQuery . prototype . mousedown = function ( arg1 , handler ) { } ;
1325
1356
1326
1357
/**
1327
1358
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1328
1359
* @param {function(!jQuery.Event)= } handler
1329
1360
* @return {!jQuery }
1361
+ * @deprecated Please use .on( "mousenter", handler ) instead.
1330
1362
*/
1331
1363
jQuery . prototype . mouseenter = function ( arg1 , handler ) { } ;
1332
1364
1333
1365
/**
1334
1366
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1335
1367
* @param {function(!jQuery.Event)= } handler
1336
1368
* @return {!jQuery }
1369
+ * @deprecated Please use .on( "mouseleave", handler ) instead.
1337
1370
*/
1338
1371
jQuery . prototype . mouseleave = function ( arg1 , handler ) { } ;
1339
1372
1340
1373
/**
1341
1374
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1342
1375
* @param {function(!jQuery.Event)= } handler
1343
1376
* @return {!jQuery }
1377
+ * @deprecated Please use .on( "mousemove", handler ) instead.
1344
1378
*/
1345
1379
jQuery . prototype . mousemove = function ( arg1 , handler ) { } ;
1346
1380
1347
1381
/**
1348
1382
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1349
1383
* @param {function(!jQuery.Event)= } handler
1350
1384
* @return {!jQuery }
1385
+ * @deprecated Please use .on( "mouseout", handler ) instead.
1351
1386
*/
1352
1387
jQuery . prototype . mouseout = function ( arg1 , handler ) { } ;
1353
1388
1354
1389
/**
1355
1390
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1356
1391
* @param {function(!jQuery.Event)= } handler
1357
1392
* @return {!jQuery }
1393
+ * @deprecated Please use .on( "mouseover", handler ) instead.
1358
1394
*/
1359
1395
jQuery . prototype . mouseover = function ( arg1 , handler ) { } ;
1360
1396
1361
1397
/**
1362
1398
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1363
1399
* @param {function(!jQuery.Event)= } handler
1364
1400
* @return {!jQuery }
1401
+ * @deprecated Please use .on( "mouseup", handler ) instead.
1365
1402
*/
1366
1403
jQuery . prototype . mouseup = function ( arg1 , handler ) { } ;
1367
1404
@@ -1389,7 +1426,7 @@ jQuery.prototype.nextUntil = function(arg1, filter) {};
1389
1426
1390
1427
/**
1391
1428
* @param {boolean= } removeAll
1392
- * @return {Object }
1429
+ * @return {!typeof jQuery }
1393
1430
*/
1394
1431
jQuery . noConflict = function ( removeAll ) { } ;
1395
1432
@@ -1408,6 +1445,7 @@ jQuery.prototype.not = function(arg1) {};
1408
1445
/**
1409
1446
* @return {number }
1410
1447
* @nosideeffects
1448
+ * @deprecated
1411
1449
*/
1412
1450
jQuery . now = function ( ) { } ;
1413
1451
@@ -1655,6 +1693,7 @@ jQuery.prototype.prop = function(arg1, arg2) {};
1655
1693
/**
1656
1694
* @param {...* } var_args
1657
1695
* @return {function() }
1696
+ * @deprecated
1658
1697
*/
1659
1698
jQuery . proxy = function ( var_args ) { } ;
1660
1699
@@ -1709,7 +1748,7 @@ jQuery.prototype.remove = function(selector) {};
1709
1748
jQuery . prototype . removeAttr = function ( attributeName ) { } ;
1710
1749
1711
1750
/**
1712
- * @param {(string|function(number,string))= } arg1
1751
+ * @param {(string|Array<string>| function(number,string))= } arg1
1713
1752
* @return {!jQuery }
1714
1753
*/
1715
1754
jQuery . prototype . removeClass = function ( arg1 ) { } ;
@@ -1749,13 +1788,15 @@ jQuery.prototype.replaceWith = function(arg1) {};
1749
1788
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1750
1789
* @param {function(!jQuery.Event)= } handler
1751
1790
* @return {!jQuery }
1791
+ * @deprecated Please use .on( "resize", handler ) instead.
1752
1792
*/
1753
1793
jQuery . prototype . resize = function ( arg1 , handler ) { } ;
1754
1794
1755
1795
/**
1756
1796
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1757
1797
* @param {function(!jQuery.Event)= } handler
1758
1798
* @return {!jQuery }
1799
+ * @deprecated Please use .on( "scroll", handler ) instead.
1759
1800
*/
1760
1801
jQuery . prototype . scroll = function ( arg1 , handler ) { } ;
1761
1802
@@ -1775,6 +1816,7 @@ jQuery.prototype.scrollTop = function(value) {};
1775
1816
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1776
1817
* @param {function(!jQuery.Event)= } handler
1777
1818
* @return {!jQuery }
1819
+ * @deprecated Please use .on( "select", handler ) instead.
1778
1820
*/
1779
1821
jQuery . prototype . select = function ( arg1 , handler ) { } ;
1780
1822
@@ -1859,6 +1901,7 @@ jQuery.prototype.stop = function(arg1, arg2, jumpToEnd) {};
1859
1901
* @param {(function(!jQuery.Event)|Object<string, *>)= } arg1
1860
1902
* @param {function(!jQuery.Event)= } handler
1861
1903
* @return {!jQuery }
1904
+ * @deprecated Please use .on( "submit", handler ) instead.
1862
1905
*/
1863
1906
jQuery . prototype . submit = function ( arg1 , handler ) { } ;
1864
1907
@@ -1932,7 +1975,7 @@ jQuery.prototype.toArray = function() {};
1932
1975
jQuery . prototype . toggle = function ( arg1 , arg2 , arg3 ) { } ;
1933
1976
1934
1977
/**
1935
- * @param {(string|function(number,string,boolean)) } arg1
1978
+ * @param {(string|Array<string>| function(number,string,boolean)) } arg1
1936
1979
* @param {boolean= } flag
1937
1980
* @return {!jQuery }
1938
1981
*/
@@ -1963,6 +2006,7 @@ jQuery.trim = function(str) {};
1963
2006
* @param {* } obj
1964
2007
* @return {string }
1965
2008
* @nosideeffects
2009
+ * @deprecated
1966
2010
*/
1967
2011
jQuery . type = function ( obj ) { } ;
1968
2012
0 commit comments