File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -619,10 +619,6 @@ function $RootScopeProvider(){
619
619
* Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for discussion of
620
620
* event life cycle.
621
621
*
622
- * @param {string } name Event name to listen on.
623
- * @param {function(event, args...) } listener Function to call when the event is emitted.
624
- * @returns {function() } Returns a deregistration function for this listener.
625
- *
626
622
* The event listener function format is: `function(event, args...)`. The `event` object
627
623
* passed into the listener has the following attributes:
628
624
*
@@ -633,6 +629,10 @@ function $RootScopeProvider(){
633
629
* propagation (available only for events that were `$emit`-ed).
634
630
* - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag to true.
635
631
* - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.
632
+ *
633
+ * @param {string } name Event name to listen on.
634
+ * @param {function(event, args...) } listener Function to call when the event is emitted.
635
+ * @returns {function() } Returns a deregistration function for this listener.
636
636
*/
637
637
$on : function ( name , listener ) {
638
638
var namedListeners = this . $$listeners [ name ] ;
You can’t perform that action at this time.
0 commit comments