* @type jQuery
* @param Function even The function to execute on every even click.
* @param Function odd The function to execute on every odd click.
+ * @cat Events
*/
toggle: function(a,b) {
// If two functions are passed in, we're
* @type jQuery
* @param Function over The function to fire whenever the mouse is moved over a matched element.
* @param Function out The function to fire whenever the mouse is moved off of a matched element.
+ * @cat Events
*/\r
hover: function(f,g) {
* will be called the instant the DOM is ready to be read and manipulated,
* which is exactly what 99.99% of all Javascript code needs to run.
*
- * Please ensure you have no code in your <body> onload event handler,
+ * Please ensure you have no code in your <body> onload event handler,
* otherwise $(document).ready() may not fire.
*
* @example $(document).ready(function(){ Your code here... });
* @name ready
* @type jQuery
* @param Function fn The function to be executed when the DOM is ready.
+ * @cat Events
*/
ready: function(f) {
// If the DOM is already ready
* @name blur
* @type jQuery
* @param Function fn A function to bind to the blur event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name blur
* @type jQuery
+ * @cat Events
*/
/**
* @name oneblur
* @type jQuery
* @param Function fn A function to bind to the blur event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unblur
* @type jQuery
* @param Function fn A function to unbind from the blur event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unblur
* @type jQuery
+ * @cat Events
*/
/**
* @name focus
* @type jQuery
* @param Function fn A function to bind to the focus event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name focus
* @type jQuery
+ * @cat Events
*/
/**
* @name onefocus
* @type jQuery
* @param Function fn A function to bind to the focus event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unfocus
* @type jQuery
* @param Function fn A function to unbind from the focus event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unfocus
* @type jQuery
+ * @cat Events
*/
/**
* @name load
* @type jQuery
* @param Function fn A function to bind to the load event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name load
* @type jQuery
+ * @cat Events
*/
/**
* @name oneload
* @type jQuery
* @param Function fn A function to bind to the load event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unload
* @type jQuery
* @param Function fn A function to unbind from the load event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unload
* @type jQuery
+ * @cat Events
*/
/**
* @name resize
* @type jQuery
* @param Function fn A function to bind to the resize event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name resize
* @type jQuery
+ * @cat Events
*/
/**
* @name oneresize
* @type jQuery
* @param Function fn A function to bind to the resize event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unresize
* @type jQuery
* @param Function fn A function to unbind from the resize event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unresize
* @type jQuery
+ * @cat Events
*/
/**
* @name scroll
* @type jQuery
* @param Function fn A function to bind to the scroll event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name scroll
* @type jQuery
+ * @cat Events
*/
/**
* @name onescroll
* @type jQuery
* @param Function fn A function to bind to the scroll event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unscroll
* @type jQuery
* @param Function fn A function to unbind from the scroll event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unscroll
* @type jQuery
+ * @cat Events
*/
/**
* @name unload
* @type jQuery
* @param Function fn A function to bind to the unload event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unload
* @type jQuery
+ * @cat Events
*/
/**
* @name oneunload
* @type jQuery
* @param Function fn A function to bind to the unload event on each of the matched elements.
+ * @cat Events
*/
/**
* @name ununload
* @type jQuery
* @param Function fn A function to unbind from the unload event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name ununload
* @type jQuery
+ * @cat Events
*/
/**
* @name click
* @type jQuery
* @param Function fn A function to bind to the click event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name click
* @type jQuery
+ * @cat Events
*/
/**
* @name oneclick
* @type jQuery
* @param Function fn A function to bind to the click event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unclick
* @type jQuery
* @param Function fn A function to unbind from the click event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unclick
* @type jQuery
+ * @cat Events
*/
/**
* @name dblclick
* @type jQuery
* @param Function fn A function to bind to the dblclick event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name dblclick
* @type jQuery
+ * @cat Events
*/
/**
* @name onedblclick
* @type jQuery
* @param Function fn A function to bind to the dblclick event on each of the matched elements.
+ * @cat Events
*/
/**
* @name undblclick
* @type jQuery
* @param Function fn A function to unbind from the dblclick event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name undblclick
* @type jQuery
+ * @cat Events
*/
/**
* @name mousedown
* @type jQuery
* @param Function fn A function to bind to the mousedown event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name mousedown
* @type jQuery
+ * @cat Events
*/
/**
* @name onemousedown
* @type jQuery
* @param Function fn A function to bind to the mousedown event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unmousedown
* @type jQuery
* @param Function fn A function to unbind from the mousedown event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unmousedown
* @type jQuery
+ * @cat Events
*/
/**
* @name mouseup
* @type jQuery
* @param Function fn A function to bind to the mouseup event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name mouseup
* @type jQuery
+ * @cat Events
*/
/**
* @name onemouseup
* @type jQuery
* @param Function fn A function to bind to the mouseup event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unmouseup
* @type jQuery
* @param Function fn A function to unbind from the mouseup event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unmouseup
* @type jQuery
+ * @cat Events
*/
/**
* @name mousemove
* @type jQuery
* @param Function fn A function to bind to the mousemove event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name mousemove
* @type jQuery
+ * @cat Events
*/
/**
* @name onemousemove
* @type jQuery
* @param Function fn A function to bind to the mousemove event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unmousemove
* @type jQuery
* @param Function fn A function to unbind from the mousemove event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unmousemove
* @type jQuery
+ * @cat Events
*/
/**
* @name mouseover
* @type jQuery
* @param Function fn A function to bind to the mouseover event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name mouseover
* @type jQuery
+ * @cat Events
*/
/**
* @name onemouseover
* @type jQuery
* @param Function fn A function to bind to the mouseover event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unmouseover
* @type jQuery
* @param Function fn A function to unbind from the mouseover event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unmouseover
* @type jQuery
+ * @cat Events
*/
/**
* @name mouseout
* @type jQuery
* @param Function fn A function to bind to the mouseout event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name mouseout
* @type jQuery
+ * @cat Events
*/
/**
* @name onemouseout
* @type jQuery
* @param Function fn A function to bind to the mouseout event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unmouseout
* @type jQuery
* @param Function fn A function to unbind from the mouseout event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unmouseout
* @type jQuery
+ * @cat Events
*/
/**
* @name change
* @type jQuery
* @param Function fn A function to bind to the change event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name change
* @type jQuery
+ * @cat Events
*/
/**
* @name onechange
* @type jQuery
* @param Function fn A function to bind to the change event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unchange
* @type jQuery
* @param Function fn A function to unbind from the change event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unchange
* @type jQuery
+ * @cat Events
*/
/**
* @name reset
* @type jQuery
* @param Function fn A function to bind to the reset event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name reset
* @type jQuery
+ * @cat Events
*/
/**
* @name onereset
* @type jQuery
* @param Function fn A function to bind to the reset event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unreset
* @type jQuery
* @param Function fn A function to unbind from the reset event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unreset
* @type jQuery
+ * @cat Events
*/
/**
* @name select
* @type jQuery
* @param Function fn A function to bind to the select event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name select
* @type jQuery
+ * @cat Events
*/
/**
* @name oneselect
* @type jQuery
* @param Function fn A function to bind to the select event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unselect
* @type jQuery
* @param Function fn A function to unbind from the select event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unselect
* @type jQuery
+ * @cat Events
*/
/**
* @name submit
* @type jQuery
* @param Function fn A function to bind to the submit event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name submit
* @type jQuery
+ * @cat Events
*/
/**
* @name onesubmit
* @type jQuery
* @param Function fn A function to bind to the submit event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unsubmit
* @type jQuery
* @param Function fn A function to unbind from the submit event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unsubmit
* @type jQuery
+ * @cat Events
*/
/**
* @name keydown
* @type jQuery
* @param Function fn A function to bind to the keydown event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name keydown
* @type jQuery
+ * @cat Events
*/
/**
* @name onekeydown
* @type jQuery
* @param Function fn A function to bind to the keydown event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unkeydown
* @type jQuery
* @param Function fn A function to unbind from the keydown event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unkeydown
* @type jQuery
+ * @cat Events
*/
/**
* @name keypress
* @type jQuery
* @param Function fn A function to bind to the keypress event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name keypress
* @type jQuery
+ * @cat Events
*/
/**
* @name onekeypress
* @type jQuery
* @param Function fn A function to bind to the keypress event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unkeypress
* @type jQuery
* @param Function fn A function to unbind from the keypress event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unkeypress
* @type jQuery
+ * @cat Events
*/
/**
* @name keyup
* @type jQuery
* @param Function fn A function to bind to the keyup event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name keyup
* @type jQuery
+ * @cat Events
*/
/**
* @name onekeyup
* @type jQuery
* @param Function fn A function to bind to the keyup event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unkeyup
* @type jQuery
* @param Function fn A function to unbind from the keyup event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unkeyup
* @type jQuery
+ * @cat Events
*/
/**
* @name error
* @type jQuery
* @param Function fn A function to bind to the error event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name error
* @type jQuery
+ * @cat Events
*/
/**
* @name oneerror
* @type jQuery
* @param Function fn A function to bind to the error event on each of the matched elements.
+ * @cat Events
*/
/**
* @name unerror
* @type jQuery
* @param Function fn A function to unbind from the error event on each of the matched elements.
+ * @cat Events
*/
/**
*
* @name unerror
* @type jQuery
+ * @cat Events
*/
var e = ("blur,focus,load,resize,scroll,unload,click,dblclick," +
});
};
- }
+ };
// If Mozilla is used
if ( jQuery.browser.mozilla || jQuery.browser.opera ) {
jQuery.ready();
}
}, 10);
+ } else {
+ // A fallback to window.onload, that will always work
+ jQuery.event.add( window, "load", jQuery.ready );
}
- // A fallback to window.onload, that will always work
- jQuery.event.add( window, "load", jQuery.ready );
-
}