jQuery: add overload for 'off' accepting a handler but no selector.

This commit is contained in:
Erik Hesselink
2013-12-05 14:18:50 +01:00
parent 9f3be188ac
commit 51a0c43568
+7
View File
@@ -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.
*