jQuery: Added hover / load event handler JSDoc

This commit is contained in:
John Reilly
2013-11-29 13:13:46 +00:00
parent 4d31a959f8
commit 61b3118cfe
+22
View File
@@ -761,7 +761,18 @@ interface JQuery {
*/
focusout(eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery;
/**
* Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.
*
* @param handlerIn A function to execute when the mouse pointer enters the element.
* @param handlerOut A function to execute when the mouse pointer leaves the element.
*/
hover(handlerIn: (eventObject: JQueryEventObject) => any, handlerOut: (eventObject: JQueryEventObject) => any): JQuery;
/**
* Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements.
*
* @param handlerInOut A function to execute when the mouse pointer enters or leaves the element.
*/
hover(handlerInOut: (eventObject: JQueryEventObject) => any): JQuery;
/**
@@ -818,7 +829,18 @@ interface JQuery {
*/
keyup(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery;
/**
* Bind an event handler to the "load" JavaScript event.
*
* @param handler A function to execute when the event is triggered.
*/
load(handler: (eventObject: JQueryEventObject) => any): JQuery;
/**
* Bind an event handler to the "load" JavaScript event.
*
* @param eventData An object containing data that will be passed to the event handler.
* @param handler A function to execute when the event is triggered.
*/
load(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
mousedown(): JQuery;