Permalink
Browse files

Fixes #2155.

Added Notes and See Also for `Elements.empty` to use `Element.destroy`
when appropriate.
  • Loading branch information...
1 parent 1959959 commit 23143c67a38d66577b302668b302568c1d32fd20 @ibolmo ibolmo committed Dec 20, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 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 23143c6

Please sign in to comment.