added second argument "element" to $.filter

This commit is contained in:
Tom Hasner
2014-07-17 18:04:10 -04:00
parent 298b893f08
commit 44ace5c660

2
jquery/jquery.d.ts vendored
View File

@@ -3655,7 +3655,7 @@ interface JQuery {
*
* @param func A function used as a test for each element in the set. this is the current DOM element.
*/
filter(func: (index: number) => any): JQuery;
filter(func: (index: number, element: Element) => any): JQuery;
/**
* Reduce the set of matched elements to those that match the selector or pass the function's test.
*