mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-30 11:14:27 +08:00
Merge pull request #7632 from mykohsu/master
Add additional off method that can accept a handler with extra arguments
This commit is contained in:
Vendored
+7
@@ -2271,6 +2271,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. Takes handler with extra args that can be attached with on().
|
||||
*/
|
||||
off(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
||||
/**
|
||||
* Remove an event handler.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user