Skip to content

Commit

Permalink
Merge pull request mootools#2148 from oskarkrawczyk/master
Browse files Browse the repository at this point in the history
Issue with the example for Element.contains(). Fixes mootools#2147
  • Loading branch information
ibolmo committed Dec 1, 2011
2 parents 8e26ef1 + c189ee8 commit e2b7f0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Docs/Element/Element.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ Checks all descendants of this Element for a match.

### Arguments:

1. el - (*mixed*) Can be an Element reference or string id.
1. el - (*element*) The element to search for.

### Returns:

Expand All @@ -464,7 +464,7 @@ Checks all descendants of this Element for a match.

##### JavaScript

if ($('Darth_Vader').contains('Luke')) alert('Luke, I am your father.'); //tan tan tannn...
if ($('Darth_Vader').contains($('Luke'))) alert('Luke, I am your father.'); //tan tan tannn...



Expand Down

0 comments on commit e2b7f0b

Please sign in to comment.