Skip to content

Commit adb055e

Browse files
committed
Enhance the whenAllReject method to return the rejected promise as argument. See #76577
1 parent f6b4964 commit adb055e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/base/Deferred/when.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CUI.whenAllReject = =>
1414
CUI.whenAll.apply(@, args).done(=>
1515
for promise in arguments
1616
if promise.state == "rejected"
17-
dfr.reject()
17+
dfr.reject(promise)
1818
return
1919
dfr.resolve()
2020
return

0 commit comments

Comments
 (0)