Only call then once in prop.then.
This commit is contained in:
parent
42723cbeb6
commit
90701a4cbb
1 changed files with 2 additions and 2 deletions
|
|
@ -1212,8 +1212,8 @@ void (function (global, factory) { // eslint-disable-line
|
||||||
|
|
||||||
prop.then = function (fufill, reject) {
|
prop.then = function (fufill, reject) {
|
||||||
return promise.then(function () {
|
return promise.then(function () {
|
||||||
return prop()
|
return fufill(prop())
|
||||||
}).then(fufill, reject)
|
}, reject)
|
||||||
}
|
}
|
||||||
|
|
||||||
prop.catch = function (reject) {
|
prop.catch = function (reject) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue