不要怂,就是干,撸起袖子干!

Commit 4b5dc3d2 by alubbe

seqPromises._settlePromiseAt: _receiverAt must be called before letting settling…

… bluebird settle. it now removes handlers immediately: https://github.com/petkaantonov/bluebird/blob/99276977e2827ce94eac1ace8abf72c17e7daecb/src/promise.js#L857
1 parent 12a78471
Showing with 1 additions and 1 deletions
...@@ -63,8 +63,8 @@ Promise.prototype._then = function (didFulfill, didReject, didProgress, receiver ...@@ -63,8 +63,8 @@ Promise.prototype._then = function (didFulfill, didReject, didProgress, receiver
var bluebirdSettle = Promise.prototype._settlePromiseAt; var bluebirdSettle = Promise.prototype._settlePromiseAt;
Promise.prototype._settlePromiseAt = function (index) { Promise.prototype._settlePromiseAt = function (index) {
bluebirdSettle.call(this, index);
var receiver = this._receiverAt(index); var receiver = this._receiverAt(index);
bluebirdSettle.call(this, index);
if (this.$sql && receiver && receiver.emit) { if (this.$sql && receiver && receiver.emit) {
this.$sql.forEach(function (sql) { this.$sql.forEach(function (sql) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!