Merge pull request #6253 from janb87/master

jQuery : updated "not" elements param to be an element or array of elements
This commit is contained in:
John Reilly
2015-10-30 13:40:31 +00:00
2 changed files with 5 additions and 1 deletions
+4
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() {
+1 -1
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|Element[]): JQuery;
/**
* Remove elements from the set of matched elements.
*