From 053247e412a29c9524f3c0164ab0082c976e5a30 Mon Sep 17 00:00:00 2001 From: Daniel Luz Date: Sat, 8 Sep 2012 17:34:11 -0300 Subject: docs($rootScope): backquote attribute types too on $on --- src/ng/rootScope.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/ng/rootScope.js') 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]; -- cgit v1.2.3