From 3fd61644e2eb480eb56181bd685e37c2a20719dc Mon Sep 17 00:00:00 2001 From: John Reilly Date: Fri, 14 Mar 2014 17:26:43 +0000 Subject: [PATCH] jQuery: added overload --- jquery/jquery.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 92e95b3088..93cb0b9998 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -3329,6 +3329,12 @@ interface JQuery { */ children(selector?: string): JQuery; + /** + * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. + * + * @param selector A string containing a selector expression to match elements against. + */ + closest(selector: string): JQuery; /** * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. *