doc: Merged/updated old docs for Element.descendants.

This commit is contained in:
tjcrowder 2009-10-09 17:20:39 +01:00
parent d10aad7bfa
commit 859197ca8b
1 changed files with 4 additions and 2 deletions

View File

@ -506,8 +506,10 @@ Element.Methods = {
/**
* Element.descendants(@element) -> [Element...]
*
* Collects all of element's descendants and returns them as an array of
* elements.
* Collects all of the element's descendants (its children, their children,
* etc.) and returns them as an array of extended elements. As with all of
* Prototype's DOM traversal methods, only Elements are returned, other
* nodes (text nodes, etc.) are skipped.
**/
descendants: function(element) {
return Element.select(element, "*");