This repository was archived by the owner on Apr 12, 2024. It is now read-only.
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 @@ -627,10 +627,6 @@ function $RootScopeProvider(){
627
627
* Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for discussion of
628
628
* event life cycle.
629
629
*
630
- * @param {string } name Event name to listen on.
631
- * @param {function(event, args...) } listener Function to call when the event is emitted.
632
- * @returns {function() } Returns a deregistration function for this listener.
633
- *
634
630
* The event listener function format is: `function(event, args...)`. The `event` object
635
631
* passed into the listener has the following attributes:
636
632
*
@@ -641,6 +637,10 @@ function $RootScopeProvider(){
641
637
* propagation (available only for events that were `$emit`-ed).
642
638
* - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag to true.
643
639
* - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.
640
+ *
641
+ * @param {string } name Event name to listen on.
642
+ * @param {function(event, args...) } listener Function to call when the event is emitted.
643
+ * @returns {function() } Returns a deregistration function for this listener.
644
644
*/
645
645
$on : function ( name , listener ) {
646
646
var namedListeners = this . $$listeners [ name ] ;
You can’t perform that action at this time.
0 commit comments