mirror of
https://github.com/flynx/guaranteeEvents.git
synced 2025-12-17 17:11:45 +00:00
minor documentation changes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e68fa30335
commit
93a5d86492
@ -11,6 +11,9 @@ will provide the following functionality:
|
|||||||
* Call new handlers of the specified event with each of the prior event
|
* Call new handlers of the specified event with each of the prior event
|
||||||
data sets in order of event occurrence.
|
data sets in order of event occurrence.
|
||||||
|
|
||||||
|
* Add a `.clearGuaranteedQueue(<evetn>)` method to the emitter to facilitate
|
||||||
|
event cache cleaning.
|
||||||
|
|
||||||
This is useful for modules like [glob](https://github.com/isaacs/node-glob)
|
This is useful for modules like [glob](https://github.com/isaacs/node-glob)
|
||||||
that use the [EventEmitter](http://nodejs.org/api/events.html#events_class_events_eventemitter)
|
that use the [EventEmitter](http://nodejs.org/api/events.html#events_class_events_eventemitter)
|
||||||
model to pass data to the user (see examples below).
|
model to pass data to the user (see examples below).
|
||||||
@ -89,8 +92,9 @@ for all wrapped events.
|
|||||||
|
|
||||||
So for the above example:
|
So for the above example:
|
||||||
```javascript
|
```javascript
|
||||||
// This this will drop all the prior matches, so newly registred handlers
|
// This this will drop all the prior match data, so newly registred handlers
|
||||||
// will not see them...
|
// will not see them...
|
||||||
|
// NOTE: this will not affect the underlaying glob object in any way.
|
||||||
results.clearGuaranteedQueue('match')
|
results.clearGuaranteedQueue('match')
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user