Skip to content

Commit

Permalink
docs($rootScope): fix $on listener signature doc
Browse files Browse the repository at this point in the history
Added args in $on() listener syntax declaration
  • Loading branch information
unirgy authored and IgorMinar committed Aug 10, 2012
1 parent c0d638a commit 4ccd9eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ng/rootScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4ccd9eb

Please sign in to comment.