Merge pull request #1381 from hesselink/master

jQuery: add overload for 'off' accepting a handler but no selector.
This commit is contained in:
Masahiro Wakame
2013-12-05 05:46:33 -08:00

7
jquery/jquery.d.ts vendored
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.
*