Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit caed2df

Browse files
bradw2ktbosch
authored andcommitted
fix(docs): clarify doc for "args" in $broadcast and $emit
Closes #6047.
1 parent 7f4edaf commit caed2df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/rootScope.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ function $RootScopeProvider(){
926926
* onto the {@link ng.$exceptionHandler $exceptionHandler} service.
927927
*
928928
* @param {string} name Event name to emit.
929-
* @param {...*} args Optional set of arguments which will be passed onto the event listeners.
929+
* @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
930930
* @return {Object} Event object (see {@link ng.$rootScope.Scope#methods_$on}).
931931
*/
932932
$emit: function(name, args) {
@@ -994,7 +994,7 @@ function $RootScopeProvider(){
994994
* onto the {@link ng.$exceptionHandler $exceptionHandler} service.
995995
*
996996
* @param {string} name Event name to broadcast.
997-
* @param {...*} args Optional set of arguments which will be passed onto the event listeners.
997+
* @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
998998
* @return {Object} Event object, see {@link ng.$rootScope.Scope#methods_$on}
999999
*/
10001000
$broadcast: function(name, args) {

0 commit comments

Comments
 (0)