From: John Resig Date: Sat, 23 Dec 2006 17:50:02 +0000 (+0000) Subject: Removed .ancestors(), fixed the docs for .parent()/.parents(). X-Git-Tag: 1.1a~73 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=58b8f1ddb8650ed69907abb4972064c643933479;p=jquery.git Removed .ancestors(), fixed the docs for .parent()/.parents(). --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 63b6ece92..d21f68581 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -2849,35 +2849,7 @@ jQuery.macros = { * Get a set of elements containing the unique ancestors of the matched * set of elements (except for the root element). * - * @example $("span").ancestors() - * @before

Hello

Hello Again
- * @result [ ...,
...
,

Hello

] - * - * @name ancestors - * @type jQuery - * @cat DOM/Traversing - */ - - /** - * Get a set of elements containing the unique ancestors of the matched - * set of elements, and filtered by an expression. - * - * @example $("span").ancestors("p") - * @before

Hello

Hello Again
- * @result [

Hello

] - * - * @name ancestors - * @type jQuery - * @param String expr An expression to filter the ancestors with - * @cat DOM/Traversing - */ - ancestors: jQuery.parents, - - /** - * Get a set of elements containing the unique ancestors of the matched - * set of elements (except for the root element). - * - * @example $("span").ancestors() + * @example $("span").parents() * @before

Hello

Hello Again
* @result [ ...,
...
,

Hello

] * @@ -2890,7 +2862,7 @@ jQuery.macros = { * Get a set of elements containing the unique ancestors of the matched * set of elements, and filtered by an expression. * - * @example $("span").ancestors("p") + * @example $("span").parents("p") * @before

Hello

Hello Again
* @result [

Hello

] *