Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Nov 10, 2011
  1. @briancavalier

    Updated README

    briancavalier authored
  2. @briancavalier
  3. @briancavalier
Commits on Nov 9, 2011
  1. @briancavalier

    whitespace cleanup

    briancavalier authored
  2. @briancavalier

    Implementation of when.reduce that leverages Array.prototype.reduce i…

    briancavalier authored
    …f available. That should make it pretty much as fast as possible. when.map now allows the mapFunc to return a promise.
Commits on Nov 8, 2011
  1. @briancavalier

    Fix for subtle, nasty bug in Deferred notify() that caused incorrect …

    briancavalier authored
    …interleaving of promise chaining in *highly* async systems like wire.js. Luckily this never made it to master!
  2. @briancavalier
Commits on Nov 5, 2011
  1. @briancavalier
Commits on Nov 2, 2011
  1. @briancavalier

    Appeasing jsdoc

    briancavalier authored
  2. @briancavalier

    Added unit tests for when(p) with no callbacks, and for deep chains, …

    briancavalier authored
    …trying to reproduce an issue seen in wire.js. Unfortunately (or fortunately?) these pass.
  3. @briancavalier

    Even more compact when() implementation that also fixes a bug where a…

    briancavalier authored
    … promise with the inputPromise's resolution value could be returned instead of the callback's value.
Commits on Oct 31, 2011
  1. @briancavalier

    More whitespace cleanup

    briancavalier authored
  2. @briancavalier
  3. @briancavalier

    Merge master, which contained a quick-fix for the promise chain gap t…

    briancavalier authored
    …hat had already been made in dev
Commits on Oct 27, 2011
  1. @briancavalier
  2. @briancavalier

    Fix for break in promise chain when no reject handler was registered …

    briancavalier authored
    …with an intermediate promise. Unit test to verify.
  3. @briancavalier
  4. @briancavalier
Commits on Oct 26, 2011
  1. @briancavalier

    README cleanup

    briancavalier authored
  2. @briancavalier
  3. @briancavalier
  4. @briancavalier

    Switched to a loop-test for unwinding the promise chain after seeing …

    briancavalier authored
    …the results of this jsperf: http://jsperf.com/noop-functions-in-loops that shows that noop functions are still way more painful than they should be in most every browser.  oh, and saved 4 more bytes.
  5. @briancavalier
  6. @briancavalier

    Patched a major hole in promise chaining. If you do something like: p…

    briancavalier authored
    …romise.then(success).then(success, fail) and promise was rejected, fail would never be called! Fixed
Commits on Oct 11, 2011
  1. @briancavalier

    progress handlers are now kept in their own array for speed and compa…

    briancavalier authored
    …ctness. More correct handling of the situation where you call when(value, callback) and callback itself returns a promise. That should forward to the new promise *just like if value were a promise*, but was not. Otherwise, it becomes much harder to reason about when()! As far as I can tell, most other promise implementations (Dojo, promised-io, uber) don't handle this case at all, but I believe Q does (haven't actually test it, just inspected the code).
Commits on Oct 7, 2011
  1. @briancavalier
  2. @briancavalier

    promise resolution did not handle the case where the resolution value…

    briancavalier authored
    … passed directly to resolve() was itself a promise. Handling that case also allowed when() to be refactored to be slightly smaller
Commits on Oct 4, 2011
  1. @briancavalier

    Improved unit tests, some tweaks to reduce(), map() now uses reduce i…

    briancavalier authored
    …nternally, so results are correctly ordered
Commits on Sep 30, 2011
  1. @briancavalier
  2. @briancavalier
  3. @briancavalier

    Updating version number and had to change some jsdoc tags because clo…

    briancavalier authored
    …sure doesn't understand @fileOverview or @extends (but does understand @augments?? which is a (less-intuitive, imho) synonym for @extends
  4. @briancavalier
  5. @briancavalier
Commits on Sep 22, 2011
  1. @briancavalier
  2. @briancavalier
Something went wrong with that request. Please try again.