Permalink
Commits on Nov 11, 2011
  1. Merge pull request #2 from mashlogic/master

    briancavalier committed Nov 11, 2011
    Tiny updates and cleanups.  Fix doh submodule commit ref, add missing semis (that weren't noticed by WebStorm!), and add instructions for running unit tests to README.
  2. Added Testing section to README.

    johan committed Nov 11, 2011
  3. Don't rely on semicolon-insertion.

    johan committed Nov 11, 2011
Commits on Nov 10, 2011
  1. Updated README

    briancavalier committed Nov 10, 2011
Commits on Nov 9, 2011
  1. whitespace cleanup

    briancavalier committed Nov 9, 2011
  2. Implementation of when.reduce that leverages Array.prototype.reduce i…

    briancavalier committed Nov 9, 2011
    …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. Fix for subtle, nasty bug in Deferred notify() that caused incorrect …

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

    briancavalier committed Nov 2, 2011
  2. Added unit tests for when(p) with no callbacks, and for deep chains, …

    briancavalier committed Nov 2, 2011
    …trying to reproduce an issue seen in wire.js. Unfortunately (or fortunately?) these pass.
  3. Even more compact when() implementation that also fixes a bug where a…

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

    briancavalier committed Oct 31, 2011
  2. Merge master, which contained a quick-fix for the promise chain gap t…

    briancavalier committed Oct 31, 2011
    …hat had already been made in dev
Commits on Oct 27, 2011
  1. Fix for break in promise chain when no reject handler was registered …

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

    briancavalier committed Oct 26, 2011
  2. Switched to a loop-test for unwinding the promise chain after seeing …

    briancavalier committed Oct 26, 2011
    …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.
  3. Patched a major hole in promise chaining. If you do something like: p…

    briancavalier committed Oct 26, 2011
    …romise.then(success).then(success, fail) and promise was rejected, fail would never be called! Fixed
Commits on Oct 11, 2011
  1. progress handlers are now kept in their own array for speed and compa…

    briancavalier committed Oct 11, 2011
    …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. promise resolution did not handle the case where the resolution value…

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