diff options
| author | unirgy | 2012-08-09 07:47:57 -0300 |
|---|---|---|
| committer | Igor Minar | 2012-08-10 14:50:22 -0700 |
| commit | 4ccd9eb88321f8554ee4dc41b7f8068ce2306765 (patch) | |
| tree | 3b172f396055094fa9199653bdaf663147826163 /src/ng/rootScope.js | |
| parent | c0d638a94b914edc76c5532c08a47ec4e60308d4 (diff) | |
| download | angular.js-4ccd9eb88321f8554ee4dc41b7f8068ce2306765.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. |
