diff options
| author | Daniel Luz | 2012-09-08 17:34:11 -0300 | 
|---|---|---|
| committer | Misko Hevery | 2012-09-11 16:19:43 -0700 | 
| commit | 06606e28166126b16a8af3bf3633e9e25844a444 (patch) | |
| tree | 4314455a97fd4a72eb0b8076bfc680709f9fb608 /src/ng | |
| parent | eba64e1f310d11bd772c2ee65e67563f6a258401 (diff) | |
| download | angular.js-06606e28166126b16a8af3bf3633e9e25844a444.tar.bz2 | |
docs($rootScope): backquote attribute types too on $on
Diffstat (limited to 'src/ng')
| -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];  | 
