Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Nov 27, 2012
  1. Merge pull request #1 from kriskowal/returns-unsubscribe

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

    Return `off` from `on`

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

    authored
  2. Publish less crap to npm.

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

    authored
  2. Add .npmignore.

    authored
  3. Use Sinon–Chai for tests.

    authored
  4. Modernizing tests.

    authored
    * 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.

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

    authored
  2. Fixing typo

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

    authored
    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.

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

    authored
    Didn't know you could do that; it always yelled at me when I tried to split it up over multiple lines before.
  2. Tabs → spaces -_-.

    authored
  3. Adding README.

    authored
  4. Adding default listener error handling behavior.

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

    authored
    Used to be `(eventName, argsArray)`.
  6. Adding `makeEmitter` export.

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

    authored
    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.

    authored
    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…

    authored
    …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.

    authored
    `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.