mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
fix(docs): clarify doc for "args" in $broadcast and $emit
Closes #6047.
This commit is contained in:
parent
7f4edaff6e
commit
caed2dfe4f
1 changed files with 2 additions and 2 deletions
|
|
@ -926,7 +926,7 @@ function $RootScopeProvider(){
|
|||
* onto the {@link ng.$exceptionHandler $exceptionHandler} service.
|
||||
*
|
||||
* @param {string} name Event name to emit.
|
||||
* @param {...*} args Optional set of arguments which will be passed onto the event listeners.
|
||||
* @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
|
||||
* @return {Object} Event object (see {@link ng.$rootScope.Scope#methods_$on}).
|
||||
*/
|
||||
$emit: function(name, args) {
|
||||
|
|
@ -994,7 +994,7 @@ function $RootScopeProvider(){
|
|||
* onto the {@link ng.$exceptionHandler $exceptionHandler} service.
|
||||
*
|
||||
* @param {string} name Event name to broadcast.
|
||||
* @param {...*} args Optional set of arguments which will be passed onto the event listeners.
|
||||
* @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
|
||||
* @return {Object} Event object, see {@link ng.$rootScope.Scope#methods_$on}
|
||||
*/
|
||||
$broadcast: function(name, args) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue