Skip to content
Permalink
Browse files
Removed .ancestors(), fixed the docs for .parent()/.parents().
  • Loading branch information
jeresig committed Dec 23, 2006
1 parent ec0dce5 commit 58b8f1ddb8650ed69907abb4972064c643933479
Showing with 2 additions and 30 deletions.
  1. +2 −30 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 <html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>
* @result [ <body>...</body>, <div>...</div>, <p><span>Hello</span></p> ]
*
* @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 <html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>
* @result [ <p><span>Hello</span></p> ]
*
* @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 <html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>
* @result [ <body>...</body>, <div>...</div>, <p><span>Hello</span></p> ]
*
@@ -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 <html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>
* @result [ <p><span>Hello</span></p> ]
*

0 comments on commit 58b8f1d

Please sign in to comment.