Permalink
Switch branches/tags
Commits on Nov 27, 2012
  1. Merge pull request #1 from kriskowal/returns-unsubscribe

    domenic committed Nov 27, 2012
    Return `off` from `on`
  2. Return `off` from `on`

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

    domenic committed Jun 14, 2012
  2. Publish less crap to npm.

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

    domenic committed Jun 6, 2012
  2. Add .npmignore.

    domenic committed Jun 6, 2012
  3. Use Sinon–Chai for tests.

    domenic committed Jun 6, 2012
  4. Modernizing tests.

    domenic committed Jun 6, 2012
    * 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.

    domenic committed Jun 6, 2012
Commits on Mar 4, 2012
  1. Fixing links.

    domenic committed Mar 4, 2012
  2. Fixing typo

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

    domenic committed Feb 9, 2012
    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.

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

    domenic committed Jan 27, 2012
    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 -_-.

    domenic committed Jan 27, 2012
  3. Adding README.

    domenic committed Jan 27, 2012
  4. Adding default listener error handling behavior.

    domenic committed Jan 27, 2012
    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)`.

    domenic committed Jan 27, 2012
    Used to be `(eventName, argsArray)`.
  6. Adding `makeEmitter` export.

    domenic committed Jan 27, 2012
    Turns a target into an emitter, returning the corresponding `publish` method.
  7. Adding `events` option to `Publisher` constructor.

    domenic committed Jan 27, 2012
    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.

    domenic committed Jan 26, 2012
    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…

    domenic committed Jan 26, 2012
    …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.

    domenic committed Jan 26, 2012
    `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.