PageRenderTime 16ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/src/org/osflash/signals/ISignal.as

http://github.com/robertpenner/as3-signals
ActionScript | 17 lines | 7 code | 0 blank | 10 comment | 0 complexity | ac65ece185809be4c524e264c2309067 MD5 | raw file
 1package org.osflash.signals
 2{
 3	/**
 4	 *
 5	 */
 6	public interface ISignal extends IOnceSignal
 7	{
 8		/**
 9		 * Subscribes a listener for the signal.
10		 * @param	listener A function with arguments
11		 * that matches the value classes dispatched by the signal.
12		 * If value classes are not specified (e.g. via Signal constructor), dispatch() can be called without arguments.
13		 * @return a ISlot, which contains the Function passed as the parameter
14		 */
15		function add(listener:Function):ISlot;
16	}
17}