From ab1313ea202e0d0bfb7cd0f563b035040710da9b Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Wed, 18 Feb 2009 10:34:01 -0600 Subject: [PATCH] Ensure Element#descendants always returns an array. [#373 state:resolved] --- CHANGELOG | 2 ++ src/dom/dom.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 403bbfc..d3050b5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Ensure Element#descendants always returns an array. [#373 state:resolved] (kangax) + * Don't switch fixed position elements to absolute in Element.getDimensions [#543 state:resolved] (James Wheare) * Avoid infinite loops when calling String#sub with empty pattern [#534 state:resolved] (Samuel Lebeau) diff --git a/src/dom/dom.js b/src/dom/dom.js index 2bd17ed..7e0f0bd 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -189,7 +189,7 @@ Element.Methods = { }, descendants: function(element) { - return $(element).select("*"); + return Element.select(element, "*"); }, firstDescendant: function(element) {