forked from EventEmitter2/EventEmitter2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protos
38 lines (32 loc) · 927 Bytes
/
protos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//TODO doc this
//Constructor
EventEmitter2(conf)
//functioned used by the constructor
initializeEvents = function(conf)
setEventDelimiter = function(delimiter)
setEventCaseSensitive = function(caseSensative)
setMaxListeners = function(n)
//error helper function
eventNameError = function(fn)
//Listener related
//Add Listener stub
on = addListener;
addListener = function(event, fn)
//remove Listener stub
un = removeListener;
removeListener = function(event, fn)
removeAllListeners = function()
//Listen to ANY event
onAny = function(fn)
//remove Listener for onAny
unAny = function(fn)
//limited use listeners
once = function(event, fn)
many = function(event, ttl, fn)
//get all listeners with this 'event'
listeners = function(event)
listenersAny = function ()
//Emit related
emit = function(event)
//emit on All listeners
emitAll = function()