Skip to content

Commit

Permalink
Release v2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
petkaantonov committed Jun 18, 2014
1 parent 3669737 commit 3a682d4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bluebird",
"version": "2.1.2",
"version": "2.1.3",
"homepage": "https://github.com/petkaantonov/bluebird",
"authors": [
"Petka Antonov <[email protected]>"
Expand Down
17 changes: 14 additions & 3 deletions browser/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -5874,10 +5874,10 @@ function Promise$_spreadSlowCase(targetFn, promise, values, boundTo) {
ASSERT(((typeof targetFn) === "function"),
"typeof targetFn === \u0022function\u0022");
var promiseForAll = new PromiseArray(values).promise();
promiseForAll._then(function() {
var promise2 = promiseForAll._then(function() {
return targetFn.apply(boundTo, arguments);
}, INTERNAL, void 0, APPLY, void 0);
promise._follow(promiseForAll);
}, void 0, void 0, APPLY, void 0);
promise._follow(promise2);
};

Promise.prototype._callSpread =
Expand Down Expand Up @@ -27310,6 +27310,17 @@ describe("spread", function () {
})
});

specify("gh-235", function(done) {
var P = Promise;
P.resolve(1).then(function(x) {
return [x, P.resolve(2)]
}).spread(function(x, y) {
return P.all([P.resolve(3), P.resolve(4)]);
}).then(function(a) {
assert.deepEqual([3, 4], a);
done();
});
})
});

},{"../../js/debug/bluebird.js":21,"assert":2}],125:[function(require,module,exports){
Expand Down
8 changes: 4 additions & 4 deletions js/browser/bluebird.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* bluebird build version 2.1.2
* bluebird build version 2.1.3
* Features enabled: core, race, call_get, generators, map, nodeify, promisify, props, reduce, settle, some, progress, cancel, using, filter, any, each, timers
*/
/**
Expand Down Expand Up @@ -2481,10 +2481,10 @@ function Promise$_resolveFromResolver(resolver) {
Promise.prototype._spreadSlowCase =
function Promise$_spreadSlowCase(targetFn, promise, values, boundTo) {
var promiseForAll = new PromiseArray(values).promise();
promiseForAll._then(function() {
var promise2 = promiseForAll._then(function() {
return targetFn.apply(boundTo, arguments);
}, INTERNAL, void 0, APPLY, void 0);
promise._follow(promiseForAll);
}, void 0, void 0, APPLY, void 0);
promise._follow(promise2);
};

Promise.prototype._callSpread =
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bluebird",
"description": "Full featured Promises/A+ implementation with exceptionally good performance",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"promise",
"performance",
Expand Down

0 comments on commit 3a682d4

Please sign in to comment.