Browse files

documented .reset()

  • Loading branch information...
1 parent c623c73 commit 35854c58bc486dc122d6066c8eb551387ac2b6a0 @substack committed Jan 4, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 README.markdown
@@ -83,8 +83,8 @@ methods
var OrderedEmitter = require('ordered-emitter');
-new OrderedEmitter(opts={})
+var em = new OrderedEmitter(opts={})
`OrderedEmitter` acts just like an EventEmitter, except that any event that
emits objects as its first argument with numeric `order` keys will be buffered
@@ -94,6 +94,13 @@ By default, order keys are isolated by event names so the order keys from
different event names won't influence each other. However, you can have order
keys work across multiple event names by setting `opts.span` to `true`.
+Reset the counter for an ordered emitter back to 0.
+If `eventName` is `undefined`, reset all the counters to 0.

0 comments on commit 35854c5

Please sign in to comment.