Fixed the nested comment issue.

This commit is contained in:
John Resig 2006-07-30 04:21:39 +00:00
parent ed867fe6f8
commit 879225b3ae

View File

@ -19,7 +19,7 @@ jQuery.fn.extend({
* @name toggle * @name toggle
* @type jQuery * @type jQuery
* @param Function even The function to execute on every even click. * @param Function even The function to execute on every even click.
* @param Function odd The function to execute on every odd click. * @param Function odd The function to execute on every odd click.
*/ */
toggle: function(a,b) { toggle: function(a,b) {
// If two functions are passed in, we're // If two functions are passed in, we're
@ -93,17 +93,17 @@ jQuery.fn.extend({
* In a nutshell, this is a solid replacement for using window.onload, * In a nutshell, this is a solid replacement for using window.onload,
* and attaching a function to that. By using this method, your bound Function * and attaching a function to that. By using this method, your bound Function
* will be called the instant the DOM is ready to be read and manipulated, * 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. * 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. * otherwise $(document).ready() may not fire.
* *
* @example $(document).ready(function(){ /* Your code here... */ }); * @example $(document).ready(function(){ Your code here... });
* *
* @name ready * @name ready
* @type jQuery * @type jQuery
* @param Function fn The function to be executed when the DOM is ready. * @param Function fn The function to be executed when the DOM is ready.
*/ */
ready: function(f) { ready: function(f) {
// If the DOM is already ready // If the DOM is already ready
if ( jQuery.isReady ) if ( jQuery.isReady )