jQuery : updated "not" elements param to be an array (was incorrectly using a spread operator)

This commit is contained in:
Jan Bevers
2015-10-12 13:58:51 +02:00
parent 27e98c87a8
commit 05b17e447e
2 changed files with 5 additions and 1 deletions

View File

@@ -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
View File

@@ -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.
*