mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 02:57:24 +08:00
jQuery : updated "not" elements param to be an array (was incorrectly using a spread operator)
This commit is contained in:
@@ -3217,6 +3217,10 @@ function test_not() {
|
||||
$("p").not("#selected");
|
||||
|
||||
$("p").not($("div p.selected"));
|
||||
|
||||
var el1 = $("<div/>")[0];
|
||||
var el2 = $("<div/>")[0];
|
||||
$("p").not([el1, el2]);
|
||||
}
|
||||
|
||||
function test_EventIsNewable() {
|
||||
|
||||
2
jquery/jquery.d.ts
vendored
2
jquery/jquery.d.ts
vendored
@@ -3050,7 +3050,7 @@ interface JQuery {
|
||||
*
|
||||
* @param elements One or more DOM elements to remove from the matched set.
|
||||
*/
|
||||
not(...elements: Element[]): JQuery;
|
||||
not(elements: Element[]): JQuery;
|
||||
/**
|
||||
* Remove elements from the set of matched elements.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user