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) {