aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/rootScope.js
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-07-18 19:39:18 +0100
committerPete Bacon Darwin2013-07-18 19:57:13 +0100
commit52123ae85bc131d070ce9e7102b3c5fbbb872fba (patch)
treeab3d4ed1d4484ca09d81bde60007f00f6122ded9 /src/ng/rootScope.js
parent3e39ac7e1b10d4812a44dad2f959a93361cd823b (diff)
downloadangular.js-52123ae85bc131d070ce9e7102b3c5fbbb872fba.tar.bz2
docs(jqLite): document "$destroy" event
Diffstat (limited to 'src/ng/rootScope.js')
-rw-r--r--src/ng/rootScope.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js
index f95d1c91..06609862 100644
--- a/src/ng/rootScope.js
+++ b/src/ng/rootScope.js
@@ -575,6 +575,9 @@ function $RootScopeProvider(){
*
* @description
* Broadcasted when a scope and its children are being destroyed.
+ *
+ * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
+ * clean up DOM bindings before an element is removed from the DOM.
*/
/**
@@ -596,6 +599,9 @@ function $RootScopeProvider(){
* Just before a scope is destroyed a `$destroy` event is broadcasted on this scope.
* Application code can register a `$destroy` event handler that will give it chance to
* perform any necessary cleanup.
+ *
+ * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
+ * clean up DOM bindings before an element is removed from the DOM.
*/
$destroy: function() {
// we can't destroy the root scope or a scope that has been already destroyed