mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Merge pull request #1381 from hesselink/master
jQuery: add overload for 'off' accepting a handler but no selector.
This commit is contained in:
7
jquery/jquery.d.ts
vendored
7
jquery/jquery.d.ts
vendored
@@ -1108,6 +1108,13 @@ interface JQuery {
|
||||
* @param handler A handler function previously attached for the event(s), or the special value false.
|
||||
*/
|
||||
off(events: string, selector?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
||||
/**
|
||||
* Remove an event handler.
|
||||
*
|
||||
* @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
|
||||
* @param handler A handler function previously attached for the event(s), or the special value false.
|
||||
*/
|
||||
off(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
||||
/**
|
||||
* Remove an event handler.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user