Commit 879225b3 authored by John Resig's avatar John Resig

Fixed the nested comment issue.

parent ed867fe6
...@@ -19,7 +19,7 @@ jQuery.fn.extend({ ...@@ -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({ ...@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment