Browse files

Merge pull request #2179 from ibolmo/fix-2155-elements-empty-docs

Fixes #2155.
  • Loading branch information...
2 parents a64bcbd + 23143c6 commit bf35c9f4748fd614b13e5f80441c1f8324b404f2 @ibolmo ibolmo committed Jan 9, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 Docs/Element/Element.md
View
12 Docs/Element/Element.md
@@ -1905,6 +1905,17 @@ Removes every item from the [Elements][] array, and the empty array.
* (*array*) This empty [Elements][] array.
+### Note:
+
+`Elements.empty` does not destroy the elements inside. As best practice, always destroy your elements if they're no longer in use. For example:
+
+ $$('div').destroy().empty();
+
+### See Also
+
+ - [Element:destroy][]
+
+
Elements Method: filter {#Elements:filter}
------------------------------------------
@@ -2053,6 +2064,7 @@ This method has been deprecated. Use [Elements:append][] instead.
[Element:inject]: #Element:inject
[Element:set]: #Element:set
[Element:get]: #Element:get
+[Element:destroy]: #Element:destroy
[Element:grab]: #Element:grab
[Element:erase]: #Element:erase
[Element:setProperty]: #Element:setProperty

0 comments on commit bf35c9f

Please sign in to comment.