aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/rootScope.js
diff options
context:
space:
mode:
authorEwen Cumming2013-02-12 11:56:59 +1300
committerIgor Minar2013-02-14 15:47:16 -0800
commit027f20be1fe426e39a0404e74b17bc654273391c (patch)
tree7673d237381297fe88f0864bb71e43436a95f875 /src/ng/rootScope.js
parent9b7c1d0f7ce442d4ad2ec587e66d2d335e64fa4e (diff)
downloadangular.js-027f20be1fe426e39a0404e74b17bc654273391c.tar.bz2
docs($rootScope): rearrange event listener docs
Diffstat (limited to 'src/ng/rootScope.js')
-rw-r--r--src/ng/rootScope.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js
index 866b957e..5981b7e7 100644
--- a/src/ng/rootScope.js
+++ b/src/ng/rootScope.js
@@ -627,10 +627,6 @@ function $RootScopeProvider(){
* Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for discussion of
* event life cycle.
*
- * @param {string} name Event name to listen on.
- * @param {function(event, args...)} listener Function to call when the event is emitted.
- * @returns {function()} Returns a deregistration function for this listener.
- *
* The event listener function format is: `function(event, args...)`. The `event` object
* passed into the listener has the following attributes:
*
@@ -641,6 +637,10 @@ function $RootScopeProvider(){
* propagation (available only for events that were `$emit`-ed).
* - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag to true.
* - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.
+ *
+ * @param {string} name Event name to listen on.
+ * @param {function(event, args...)} listener Function to call when the event is emitted.
+ * @returns {function()} Returns a deregistration function for this listener.
*/
$on: function(name, listener) {
var namedListeners = this.$$listeners[name];