diff options
| author | Daniel Luz | 2012-09-08 17:34:11 -0300 |
|---|---|---|
| committer | Misko Hevery | 2012-09-11 15:11:02 -0700 |
| commit | 053247e412a29c9524f3c0164ab0082c976e5a30 (patch) | |
| tree | 29b9ba94898bb4a14a44d3828c9b1f19834af8b9 /src/ng/rootScope.js | |
| parent | 7fa391c9790bc4e73c2295c6a7a9084db78e18a7 (diff) | |
| download | angular.js-053247e412a29c9524f3c0164ab0082c976e5a30.tar.bz2 | |
docs($rootScope): backquote attribute types too on $on
Diffstat (limited to 'src/ng/rootScope.js')
| -rw-r--r-- | src/ng/rootScope.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 56b28cc2..5af43a00 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -617,13 +617,13 @@ function $RootScopeProvider(){ * The event listener function format is: `function(event, args...)`. The `event` object * passed into the listener has the following attributes: * - * - `targetScope` - {Scope}: the scope on which the event was `$emit`-ed or `$broadcast`-ed. - * - `currentScope` - {Scope}: the current scope which is handling the event. - * - `name` - {string}: Name of the event. - * - `stopPropagation` - {function=}: calling `stopPropagation` function will cancel further event 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. + * - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or `$broadcast`-ed. + * - `currentScope` - `{Scope}`: the current scope which is handling the event. + * - `name` - `{string}`: Name of the event. + * - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel further event + * 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. */ $on: function(name, listener) { var namedListeners = this.$$listeners[name]; |
