Skip to content

Commit 51a0c43

Browse files
committed
jQuery: add overload for 'off' accepting a handler but no selector.
1 parent 9f3be18 commit 51a0c43

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jquery/jquery.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,13 @@ interface JQuery {
11081108
* @param handler A handler function previously attached for the event(s), or the special value false.
11091109
*/
11101110
off(events: string, selector?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery;
1111+
/**
1112+
* Remove an event handler.
1113+
*
1114+
* @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
1115+
* @param handler A handler function previously attached for the event(s), or the special value false.
1116+
*/
1117+
off(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
11111118
/**
11121119
* Remove an event handler.
11131120
*

0 commit comments

Comments
 (0)