From 65cfdc21bba6bd12ac571edd36c538b39405e002 Mon Sep 17 00:00:00 2001 From: Brad Williams Date: Wed, 29 Jan 2014 10:16:54 -0800 Subject: [PATCH] clarify doc for "args" in $broadcast and $emit Use of word "set" was confusing me: "args" is not a single thing, and it is not a computer science set. "args" here indicates: one or more arguments. --- src/ng/rootScope.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index bbf290b2909a..c90d28a6cf24 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -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) {