Skip to content
Commits on Nov 27, 2012
  1. Merge pull request #1 from kriskowal/returns-unsubscribe

    committed
    Return `off` from `on`
  2. @kriskowal

    Return `off` from `on`

    kriskowal committed
    Subscribing returns an equal and opposite unsubscriber.
Commits on Jun 14, 2012
  1. Version 1.2.1.

    committed
  2. Publish less crap to npm.

    committed
Commits on Jun 6, 2012
  1. Version 1.2.0.

    committed
  2. Add .npmignore.

    committed
  3. Use Sinon–Chai for tests.

    committed
  4. Modernizing tests.

    committed
    * Upgrade all devDependencies.
    * Use a required setup.js file to take care of some global stuff.
    * Make the throwArgumentError helper into a mini Chai plugin.
    * Move completely to the should interface, over expect.
  5. Fixing license.

    committed
Commits on Mar 4, 2012
  1. Fixing links.

    committed
  2. Fixing typo

    committed
Commits on Feb 21, 2012
Commits on Feb 9, 2012
  1. Adding support for `.on("event1 event2", listener)` syntax.

    committed
    Bumping version to 1.1.0.
Commits on Feb 6, 2012
Commits on Feb 3, 2012
Commits on Jan 28, 2012
  1. Fixing a typo in the README.

    committed
Commits on Jan 27, 2012
  1. Capping JSHint comment lines to 120 characters.

    committed
    Didn't know you could do that; it always yelled at me when I tried to split it up over multiple lines before.
  2. Capping to 120 characters/line.

    committed
  3. Tabs → spaces -_-.

    committed
  4. Adding README.

    committed
  5. Adding default listener error handling behavior.

    committed
    Throws the error on the next turn of the event loop. Cannot figure out how to test this though; TODO added to that effect.
  6. Switching `Publisher.publish` signature to `(eventName, ...args)`.

    committed
    Used to be `(eventName, argsArray)`.
  7. Adding `makeEmitter` export.

    committed
    Turns a target into an emitter, returning the corresponding `publish` method.
  8. Adding `events` option to `Publisher` constructor.

    committed
    This allows a publisher to be restricted to a given set of events, such that either publishing or subscribing to any other event throws an error. Useful for preventing typos or confusion.
Commits on Jan 26, 2012
  1. Adding `async` boolean option to `Publisher` constructor.

    committed
    If present and truthy, all events will be published asynchronously. This behavior is not the default.
  2. Listener error callback now part of options argument to `Publisher` c…

    committed
    …onstructor.
    
    * Previously set through `publisher.setSubscriberErrorCallback(...)`.
    * Now: `new Publisher({ onListenerError: ... })`.
    * New options test suite; listener error callback test moved there.
  3. Adding asap variations of the listener helpers.

    committed
    `pubit.throttledListener` and `pubit.debouncedListener` now both take a third parameter, `asap`, which if true causes the aggregate listener to fire on the next turn of the event loop after the throttled/debounced listener is first called. In many cases, this gives the right blend between responsiveness and rate-limiting.
Something went wrong with that request. Please try again.