Skip to content

Commit d5a7e1c

Browse files
author
Web Advanced
committed
added proxy to public API
1 parent fa562be commit d5a7e1c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dev/signals.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,16 @@ var signals = ( function ( global, undefined ) {
176176
*/
177177
broadcast: function ( signalName, arg ) {
178178
takeAction( 'broadcast', signalName, arg );
179+
},
180+
/**
181+
* Return a broadcast function for the given signal.
182+
* @name signals.proxy
183+
* @param {string} [signalName] The signal.
184+
* @return {function} when executed will broadcast for given sigalName.
185+
* @function
186+
*/
187+
proxy: function ( signalName ) {
188+
createProxyFor( signalName );
179189
},
180190
/**
181191
* Remove a listener from the given signal.

0 commit comments

Comments
 (0)