aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-07-18 19:39:18 +0100
committerPete Bacon Darwin2013-07-18 19:53:13 +0100
commit88c4963328b51317fe35277bd744f6c659d874c7 (patch)
treebebbc7a9899540aeae6f39ff0a9ec4023c404cc5 /src/jqLite.js
parent67a81eff4252cd9576853dd85d26d8879d840a6b (diff)
downloadangular.js-88c4963328b51317fe35277bd744f6c659d874c7.tar.bz2
docs(jqLite): document "$destroy" event
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index bf1802f9..fc8fba07 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -26,7 +26,8 @@
* Note: All element references in Angular are always wrapped with jQuery or jqLite; they are never
* raw DOM references.
*
- * ## Angular's jQuery lite provides the following methods:
+ * ## Angular's jqLite
+ * Angular's lite version of jQuery provides only the following jQuery methods:
*
* - [addClass()](http://api.jquery.com/addClass/)
* - [after()](http://api.jquery.com/after/)
@@ -59,8 +60,14 @@
* - [val()](http://api.jquery.com/val/)
* - [wrap()](http://api.jquery.com/wrap/)
*
- * ## In addtion to the above, Angular provides additional methods to both jQuery and jQuery lite:
+ * ## jQuery/jqLite Extras
+ * Angular also provides the following additional methods and events to both jQuery and jqLite:
*
+ * ### Events
+ * - `$destroy` - AngularJS intercepts all jqLite/jQuery's DOM destruction apis and fires this event
+ * on all DOM nodes being removed. This can be used to clean up and 3rd party bindings to the DOM
+ * element before it is removed.
+ * ### Methods
* - `controller(name)` - retrieves the controller of the current element or its parent. By default
* retrieves controller associated with the `ngController` directive. If `name` is provided as
* camelCase directive name, then the controller for this directive will be retrieved (e.g.