X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=ddcddce0640804f912a9344572b4058a9545f306;hb=c6e6e72561979ab80aaf5ce1ab63d3dd010382a3;hp=46019bf94694782a4fa4f8fbac9b1d9169c511eb;hpb=7b439921c48070e7b01ebda3580e0ada01a082b5;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 46019bf..ddcddce 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -154,10 +154,18 @@ var $ = jQuery; * }); * @desc Executes the function when the DOM is ready to be used. * + * @example jQuery(function($) { + * // Your code using failsafe $ alias here... + * }); + * @desc Uses both the shortcut for $(document).ready() and the argument + * to write failsafe jQuery code using the $ alias, without relying on the + * global alias. + * * @name $ * @param Function fn The function to execute when the DOM is ready. * @cat Core * @type jQuery + * @see ready(Function) */ jQuery.fn = jQuery.prototype = {