Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Updated docs for Element.getParents #2253

Merged
merged 3 commits into from

2 participants

@umphy

Added a return clause to say that if no parents are found, an empty array is returned rather than null.

@ibolmo ibolmo merged commit 58a6ae3 into mootools:master
@ibolmo
Owner

:+1: looks good. thanks for the contribution, keep 'em coming :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 25, 2012
  1. @umphy

    Update Docs/Element/Element.md

    umphy authored
  2. @umphy

    Update Docs/Element/Element.md

    umphy authored
  3. @umphy

    Update Docs/Element/Element.md

    umphy authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 Docs/Element/Element.md
View
4 Docs/Element/Element.md
@@ -1127,6 +1127,10 @@ Element Method: getParents {#Element:getParents}
Like [Element:getParent](#Element:getParent), but returns a collection of all the matched parentNodes up the tree.
+### Returns:
+
+* (*array*) If no matching parents are found, an empty array is returned.
+
Element Method: getSiblings {#Element:getSiblings}
Something went wrong with that request. Please try again.