Permalink
Commits on Nov 10, 2011
  1. @briancavalier

    Updated README

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

    whitespace cleanup

    briancavalier committed Nov 9, 2011
  2. @briancavalier

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

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

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

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

    Appeasing jsdoc

    briancavalier committed Nov 2, 2011
  2. @briancavalier

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

    …trying to reproduce an issue seen in wire.js. Unfortunately (or fortunately?) these pass.
    briancavalier committed Nov 2, 2011
  3. @briancavalier

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

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

    More whitespace cleanup

    briancavalier committed Oct 31, 2011
  2. @briancavalier
  3. @briancavalier

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

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

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

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

    README cleanup

    briancavalier committed Oct 26, 2011
  2. @briancavalier
  3. @briancavalier
  4. @briancavalier

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

    …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.
    briancavalier committed Oct 26, 2011
  5. @briancavalier
  6. @briancavalier

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

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

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

    …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).
    briancavalier committed Oct 11, 2011
Commits on Oct 7, 2011
  1. @briancavalier
  2. @briancavalier

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

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

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

    …nternally, so results are correctly ordered
    briancavalier committed Oct 4, 2011
Commits on Sep 30, 2011
  1. @briancavalier

    Doc updates and minor code reorg. Removing when.each for now, until I…

    … decide the best approach
    briancavalier committed Sep 30, 2011
  2. @briancavalier
  3. @briancavalier

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

    …sure doesn't understand @fileOverview or @extends (but does understand @augments?? which is a (less-intuitive, imho) synonym for @extends
    briancavalier committed Sep 30, 2011
  4. @briancavalier
  5. @briancavalier
Commits on Sep 22, 2011
  1. @briancavalier
  2. @briancavalier