MiniSignal
|
- |
2 |
browser.js
|
- |
2 |
should expose MiniSignal and MiniSignalBinding
|
- |
|
emits with context
|
- |
|
MiniSignal
|
- |
2 |
CommonJS
|
- |
2 |
should expose MiniSignal and MiniSignalBinding
|
- |
|
emits with context
|
- |
|
MiniSignalsBinding
|
- |
8 |
MiniSignalsBinding#detach
|
- |
8 |
should only remove the specific listener
|
- |
|
should remove from front
|
- |
|
should remove from middle
|
- |
|
emits to all event listeners after removing
|
- |
|
can remove previous node in dispatch
|
- |
|
can remove next node in dispatch
|
- |
|
can remove node in dispatch
|
- |
|
can remove current node in dispatch
|
- |
|
MiniSignal
|
- |
36 |
inherits when used with require(util).inherits
|
- |
|
MiniSignal#once
|
- |
1 |
should return false when there are not events to dispatch
|
- |
|
MiniSignal#add
|
- |
1 |
should return false when there are not events to dispatch
|
- |
|
MiniSignal#dispatch
|
- |
14 |
should return false when there are not events to dispatch
|
- |
|
emits with context
|
- |
|
emits with context, multiple arguments (force apply)
|
- |
|
can dispatch the function with multiple arguments
|
- |
|
can dispatch the function with multiple arguments, multiple listeners
|
- |
|
can dispatch many listeners
|
- |
|
emits with context, multiple listeners (force loop)
|
- |
|
emits with different contexts
|
- |
|
should return true when there are events to dispatch
|
- |
|
should return false when there are no events to dispatch
|
- |
|
receives the emitted events
|
- |
|
emits to all event listeners
|
- |
|
emits to all event listeners
|
- |
|
emits to all event listeners, removes once
|
- |
|
MiniSignal#handlers
|
- |
4 |
returns an empty array if no handlers are added
|
- |
|
returns an array of MiniSignalBinding
|
- |
|
is not vulnerable to modifications
|
- |
|
can return a boolean as indication if handlers exist
|
- |
|
MiniSignal#detach
|
- |
9 |
should throw an error if not a SignalBinding
|
- |
|
should only remove the event with the specified function
|
- |
|
should remove from front
|
- |
|
should remove from middle
|
- |
|
emits to all event listeners after removing
|
- |
|
can remove previous node in dispatch
|
- |
|
can remove next node in dispatch
|
- |
|
can remove node in dispatch
|
- |
|
can remove current node in dispatch
|
- |
|
MiniSignal#detachAll
|
- |
2 |
removes all events
|
- |
|
should not thow an error if no listerners are set
|
- |
|
Readme Examples
|
- |
4 |
Example Usage
|
- |
|
Another Example
|
- |
|
Function#bind example
|
- |
|
Function#bind example with parameters
|
- |
|