Skip to content

Commit 053247e

Browse files
mernenmhevery
authored andcommitted
docs($rootScope): backquote attribute types too on $on
1 parent 7fa391c commit 053247e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/ng/rootScope.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -617,13 +617,13 @@ function $RootScopeProvider(){
617617
* The event listener function format is: `function(event, args...)`. The `event` object
618618
* passed into the listener has the following attributes:
619619
*
620-
* - `targetScope` - {Scope}: the scope on which the event was `$emit`-ed or `$broadcast`-ed.
621-
* - `currentScope` - {Scope}: the current scope which is handling the event.
622-
* - `name` - {string}: Name of the event.
623-
* - `stopPropagation` - {function=}: calling `stopPropagation` function will cancel further event propagation
624-
* (available only for events that were `$emit`-ed).
625-
* - `preventDefault` - {function}: calling `preventDefault` sets `defaultPrevented` flag to true.
626-
* - `defaultPrevented` - {boolean}: true if `preventDefault` was called.
620+
* - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or `$broadcast`-ed.
621+
* - `currentScope` - `{Scope}`: the current scope which is handling the event.
622+
* - `name` - `{string}`: Name of the event.
623+
* - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel further event
624+
* propagation (available only for events that were `$emit`-ed).
625+
* - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag to true.
626+
* - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.
627627
*/
628628
$on: function(name, listener) {
629629
var namedListeners = this.$$listeners[name];

0 commit comments

Comments
 (0)