From 859197ca8b65602a4d4766d0c78c6f45742794ce Mon Sep 17 00:00:00 2001 From: tjcrowder Date: Fri, 9 Oct 2009 17:20:39 +0100 Subject: [PATCH] doc: Merged/updated old docs for Element.descendants. --- src/dom/dom.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dom/dom.js b/src/dom/dom.js index d68b232..bbf72a7 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -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, "*");