Skip to content

Commit

Permalink
Published with https://stackedit.io/
Browse files Browse the repository at this point in the history
  • Loading branch information
burdiuz committed Mar 2, 2016
1 parent 797a4e2 commit ec7c24e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,10 @@ Project contains `example` folder with examples for Dedicated and Shared workers
WorkerEventDispatcher is a base class and it shares functionality across all types of WorkerEventDispatcher's. When WorkerEventDispatcher instantiated directly, it actually creates DedicatedWorkerEventDispatcher.

- **type**:String - type of the worker
- **sender**:EventDispatcher - fires outgoing events that are passed to `postMessage()`
- **receiver**:EventDispatcher - fires incoming events received from other origin
Including [all members of MessagePortDispatcher](https://github.com/burdiuz/js-messageport-event-dispatcher/blob/master/README.md#messageportdispatcher-instance-members), some most important:
- **addEventListener**(eventType:String, listener:Function):void - add listener for incoming events. This method copied from `receiver`.
- **hasEventListener**(eventType:String):Boolean - check if incoming event has listeners. This method copied from `receiver`.
- **removeEventListener**(eventType:String, listener:Function):void - remove event listener for incoming event. This method copied from `receiver`.
- **removeAllEventListeners**(eventType:String):void - remove all listeners for incoming event. This method copied from `receiver`.
- **dispatchEvent**(event:Object):void - does not fire event, it sends event to `postMessage()`. Can be used with two arguments:
- dispatchEvent(eventType:String, data?:Object):void

Expand Down

0 comments on commit ec7c24e

Please sign in to comment.