From 382a7ecd6d8e9a39bf24cec81fd65971ef3f8ada Mon Sep 17 00:00:00 2001 From: John Resig Date: Sun, 14 Jan 2007 19:49:58 +0000 Subject: [PATCH] Merged in some wiki fixes into the main docs. --- src/ajax/ajax.js | 6 +++--- src/jquery/jquery.js | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 6651903..d126bc4 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -223,7 +223,7 @@ if ( jQuery.browser.msie && typeof XMLHttpRequest == "undefined" ) */ /** - * Attach a function to be executed before an AJAX request is send. + * Attach a function to be executed before an AJAX request is sent. * * The XMLHttpRequest and settings used for that request are passed * as arguments to the callback. @@ -231,7 +231,7 @@ if ( jQuery.browser.msie && typeof XMLHttpRequest == "undefined" ) * @example $("#msg").ajaxSend(function(request, settings){ * $(this).append("
  • Starting request at " + settings.url + "
  • "); * }); - * @desc Show a message before an AJAX request is send. + * @desc Show a message before an AJAX request is sent. * * @name ajaxSend * @type jQuery @@ -536,7 +536,7 @@ jQuery.extend({ * the default content-type "application/x-www-form-urlencoded". If you want to send * DOMDocuments, set this option to false. * - * (Boolean) async - By default, all requests are send asynchronous (set to true). + * (Boolean) async - By default, all requests are sent asynchronous (set to true). * If you need synchronous requests, set this option to false. * * (Function) beforeSend - A pre-callback to set custom headers etc., the diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 83711de..011ea36 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -320,17 +320,17 @@ jQuery.fn = jQuery.prototype = { * Returns -1 if the object wasn't found. * * @example $("*").index( $('#foobar')[0] ) - * @before
    + * @before
    * @result 0 * @desc Returns the index for the element with ID foobar * - * @example $("*").index( $('#foo')) - * @before
    + * @example $("*").index( $('#foo')[0] ) + * @before
    * @result 2 - * @desc Returns the index for the element with ID foo + * @desc Returns the index for the element with ID foo within another element * - * @example $("*").index( $('#bar')) - * @before
    + * @example $("*").index( $('#bar')[0] ) + * @before
    * @result -1 * @desc Returns -1, as there is no element with ID bar * -- 1.7.10.4