diff options
| author | unirgy | 2012-08-09 07:47:57 -0300 |
|---|---|---|
| committer | Igor Minar | 2012-08-10 14:52:57 -0700 |
| commit | f8a52be8176a068f12f456b832d35b9ee5d1f1e8 (patch) | |
| tree | 472c511e4a527c39f44353a62e5767f231ea32ff /src/ng/rootScope.js | |
| parent | 3b5f1105f6fa615e0833502648c77d8878fd2c65 (diff) | |
| download | angular.js-f8a52be8176a068f12f456b832d35b9ee5d1f1e8.tar.bz2 | |
docs($rootScope): fix $on listener signature doc
Added args in $on() listener syntax declaration
Diffstat (limited to 'src/ng/rootScope.js')
| -rw-r--r-- | src/ng/rootScope.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 121ece08..bd11765d 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -614,8 +614,8 @@ function $RootScopeProvider(){ * @param {function(event)} listener Function to call when the event is emitted. * @returns {function()} Returns a deregistration function for this listener. * - * The event listener function format is: `function(event)`. The `event` object passed into the - * listener has the following attributes + * 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. |
