From f8a52be8176a068f12f456b832d35b9ee5d1f1e8 Mon Sep 17 00:00:00 2001 From: unirgy Date: Thu, 9 Aug 2012 07:47:57 -0300 Subject: docs($rootScope): fix $on listener signature doc Added args in $on() listener syntax declaration --- src/ng/rootScope.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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. -- cgit v1.2.3